【发布时间】:2015-09-29 04:37:58
【问题描述】:
标题差不多。我让应用程序在设备运行时注册设备以接收推送通知,我需要在设备卸载时取消注册设备。怎么做?
【问题讨论】:
标签: android push-notification titanium google-cloud-messaging appcelerator
标题差不多。我让应用程序在设备运行时注册设备以接收推送通知,我需要在设备卸载时取消注册设备。怎么做?
【问题讨论】:
标签: android push-notification titanium google-cloud-messaging appcelerator
我猜你写卸载的意思是从设备中删除应用程序?
在设备端从 GCM 取消注册可能需要几分钟,因此可能无法在卸载时完成,see answers here。
您的服务器应该停止发送推送通知。如果他尝试 GCM 会返回 NotRegistered-error,see the docs here。
如果您将 Appcelerator 服务用于通知,则错误来自其服务器。
【讨论】: