Google Drive Android API Change Notifications not working

試著忘記壹切 提交于 2019-11-27 08:26:51

问题


I am using Google Drive Android API sample and in that sample i am able to create file and folder in Drive but if i want to monitor change events for a file which is cretaed by this app then it is not working.

https://github.com/googledrive/android-demos in this sample there is one activity to receive notfiications for change event in a file, which is not working.

I am not seeing any notification when i changed metadata of selected file from web.


回答1:


Changes from the web are not instantaneously reflected on the device. You will get notified when the device finds out about the change.

You can speed up that process by calling requestSync.



来源:https://stackoverflow.com/questions/22980497/google-drive-android-api-change-notifications-not-working

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