【问题标题】:Appcelerator Titanium run code on uninstall (android)Appcelerator Titanium 卸载时运行代码 (android)
【发布时间】:2015-09-29 04:37:58
【问题描述】:

标题差不多。我让应用程序在设备运行时注册设备以接收推送通知,我需要在设备卸载时取消注册设备。怎么做?

【问题讨论】:

    标签: android push-notification titanium google-cloud-messaging appcelerator


    【解决方案1】:

    我猜你写卸载的意思是从设备中删除应用程序?

    在设备端从 GCM 取消注册可能需要几分钟,因此可能无法在卸载时完成,see answers here

    您的服务器应该停止发送推送通知。如果他尝试 GCM 会返回 NotRegistered-error,see the docs here

    如果您将 Appcelerator 服务用于通知,则错误来自其服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-28
      • 1970-01-01
      • 2021-03-05
      • 1970-01-01
      相关资源
      最近更新 更多