【问题标题】:After the file notification function is enabled on the DriveKit client, However, the file change notification is not received when the file is deletedDriveKit客户端开启文件通知功能后,删除文件时收不到文件更改通知
【发布时间】:2020-07-13 14:43:44
【问题描述】:

在DriveKit客户端开启文件通知功能后,文件更改通知注册成功。但是删除文件时,没有收到文件更改通知。

服务器界面如​​下:

  1. 什么类型的文件更改会回调第三方文件更改通知界面?
  2. 如何调试通知第三方文件更改的接口?

【问题讨论】:

    标签: android huawei-mobile-services huawei-developers


    【解决方案1】:
    1. 应用调用Changes.getStartCursor接口获取Changes.subscribe所需的游标值。调用Changes.subscribe API 注册文件推送通知功能。该接口在注册成功后返回Channel对象。开发者需要将Channel对象中的channelToken返回给第三方服务器进行后续认证。此外,开发者还可以根据Channel对象进行后续处理,如更新和停止推送通知。

    https://developer.huawei.com/consumer/cn/doc/development/HMS-Guides/drivekit-nop-client-development#watchChange

    1. 以下文件状态发生变化时会触发通知:

    https://developer.huawei.com/consumer/cn/doc/development/HMS-Guides/drivekit-nop-server-development#h1-1576503999176

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-02
      • 2015-06-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多