谷歌推动Android API更改通知无法正常工作 [英] Google Drive Android API Change Notifications not working

查看:155
本文介绍了谷歌推动Android API更改通知无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌驱动器的Andr​​oid API的样品和样品中,我能够在驱动器上创建文件和文件夹,但如果我要监视更改事件是由这个程序cretaed那么它是不工作的文件。

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 此样品中有一个活动收到的一个文件,这是行不通的notfiications变革的事件。

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.

这篇关于谷歌推动Android API更改通知无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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