gpt4 book ai didi

java - Android GCM 注册 ID

转载 作者:行者123 更新时间:2023-11-29 21:47:43 26 4
gpt4 key购买 nike

我在我的 Android 应用程序中成功实现了 GCM,但我如何知道我的应用程序何时从设备上卸载?我也会删除我的 MySQL 数据库中的注册 ID。我认为 Apple 有一项服务可以在发送失败时检查是否没有响应 id,但 Google 有类似的服务吗?

最佳答案

引自 here

Finally, when GCM attempts to deliver a message to the device and the application was uninstalled, GCM will discard that message right away and invalidate the registration ID. Future attempts to send a message to that device will get a NotRegistered error. See How Unregistration Works for more information.

更多信息 here

关于java - Android GCM 注册 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15340542/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com