我有一个使用GCM推送通知的应用.它工作正常,我的设备注册并接收推送消息.
如果我从我的设备上卸载应用程序,我将不再收到您所期望的消息.在我卸载应用程序后,您在服务器上发送消息的TextBox仍然存在,我也期望.
我查看了有关取消注册的文档,您可以手动或自动完成.
The end user uninstalls the application.
The 3rd-party server sends a message to GCM server.
The GCM server sends the message to the device.
The GCM client receives the message and queries Package Manager about whether there are broadcast receivers configured to receive it, which returns false.
The GCM client informs the GCM server that the application was uninstalled.
The GCM server marks the registration ID for deletion.
The 3rd-party server sends a message to GCM.
The …Run Code Online (Sandbox Code Playgroud)