ActiveSync 2.5 推送联系人 Android 2.3 和 4
我正在使用 zpush 构建一个群件来同步联系人/日历。 Direct Push 在任何 IOS 设备上都可以很好地工作,但在 Android 上则不然(在 2.3 和 4.0 上测试)。
我没有在 PING 响应(状态 2 - 已修改)后收到 SYNC 命令,而是从设备收到 FOLDERSYNC 命令。我哪里错了?
I am building a groupware using zpush to sync contacts/calendars. Direct Push is working very well on any IOS device but does not on Android (tested on 2.3 and 4.0).
Instead of receiving a SYNC command after a PING response (status 2 - modified), I receive a FOLDERSYNC command from the device. Where am I wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK,设备几乎可以随时发送
FolderSync
命令。仅仅因为Ping
的返回代码表明设备有需要同步的更改,您可能不应该期望它始终发生。正如您所发现的,流行的 EAS 实现之间存在细微但显着的差异,而且它是一个复杂的启动协议。如果您希望所有 EAS 客户端都能愉快地使用您的服务器代码,那么您的服务器代码必须非常宽容。
AFAIK, the device is free to send a
FolderSync
command at almost any time. Just because thePing
's return code indicates that there are changes for the device to synchronize, you should probably not expect it to happen all the time.As you're finding out, there are subtle but significant differences between the popular EAS implementations, and it's a complex protocol to boot. Your server's code will have to be pretty forgiving if you want all EAS clients to work happily with it.