Google Drive Android Api ChangeEvent Listener workings

陌路散爱 提交于 2019-11-26 17:14:55

问题


I am abusing this forum to solicit explanation (from the GDAA support team) of intended use of GDAA Notification Feature. The documentation here is quite sufficient to implement it, and the two related SO questions 22980497 and 22778501 touch on the same subject. But I can't get my head around it's intended use. Here is the example.

  • Device A 'touches' the Drive object and gets notification immediately.
  • Device B 'touches' the same Drive object and the device A gets notified 'sometime later', even if both devices are on wifi.

So, what is it good for? The app on one particular device knows that it just modified an object, does not need to be notified. On the other hand, if it gets notification that another device modified object with a CONSIDERABLE (minutes) delay, how can synchronization be implemented? Or how can it be used at all? I was advised to use 'requestSync()', but did not see any difference (besides, how it is different from direct polling).
Today, I can reliably synchronize multiple devices by polling, but can't make it work with notifications that do not notify on time.

来源:https://stackoverflow.com/questions/23073474/google-drive-android-api-changeevent-listener-workings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!