After the file notification function is enabled on the DriveKit client, However, the file change notification is not received when the file is deleted
After the file notification function is enabled on the DriveKit client, the file change notification is successfully registered. However, the file change notification is not received when the file is deleted.
The server interface is as follows:
What is the type of file change that will call back the third-party file change notification interface?
How Do I Debug the Interface for Notifying Third-Party File Changes?
Solution
The app invokes the Changes.getStartCursor interface to obtain the cursor value required by Changes.subscribe. Call the Changes.subscribe API to register the file push notification function. This API returns the Channel object after the registration is successful. The developer needs to return the channelToken in the Channel object to the third-party server for subsequent authentication. In addition, the developer can perform subsequent processing such as updating and stopping the push notification based on the Channel object.