Google Drive Android API 更改通知不起作用 [英] Google Drive Android API Change Notifications not working

查看:22
本文介绍了Google Drive Android API 更改通知不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Google Drive Android API 示例,在该示例中,我能够在 Drive 中创建文件和文件夹,但是如果我想监控由该应用创建的文件的更改事件,那么它就无法正常工作.

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 在这个示例中有一个活动来接收文件中更改事件的通知,但它不起作用.

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.

推荐答案

来自网络的更改不会立即反映在设备上.当设备发现更改时,您会收到通知.

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

您可以通过调用 requestSync 来加快该过程.

You can speed up that process by calling requestSync.

这篇关于Google Drive Android API 更改通知不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆