FCM 检测 IOS 上的应用程序卸载(firebase 云消息推送通知) [英] FCM detect app uninstall on IOS (firebase cloud messaging push notifications)

查看:38
本文介绍了FCM 检测 IOS 上的应用程序卸载(firebase 云消息推送通知)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 FCM 检测应用程序卸载.我正在向用户发送静默通知,如果我收到 NotRegistered 响应,我知道应用程序已卸载.

I'm detecting app uninstalls using FCM. I'm sending silent notifications to users, if I'm getting NotRegistered response, I know that the app is uninstalled.

然而,在 IOS 上我总是得到 success 响应,即使是在卸载的应用程序上.FCM 文档NotRegistered 提供:

However, on IOS I'm always getting success responses, even on uninstalled apps. FCM documentation says that NotRegistered is provided:

如果客户端应用程序自动取消注册,这可能会在用户卸载应用程序时发生.例如,在 iOS 上,如果 APNs 反馈服务报告 APNs 令牌无效.

If the client app is automatically unregistered, which can happen if the user uninstalls the application. For example, on iOS, if the APNs Feedback Service reported the APNs token as invalid.

为什么在 IOS 应用程序上卸载 APNs 反馈服务 不会将令牌状态更新为 invalid?为什么我在卸载应用程序时获得 success?

Why on IOS app uninstall the APNs Feedback Service does not update the token status to invalid? Why am I getting success while the app is uninstalled?

在 Android 上一切都很好,我按预期收到 NotRegistered 响应.

On Android everything is just fine, I'm getting NotRegistered response as expected.

推荐答案

您在使用 Firebase 分析吗?如果是,它会自动检测安装和卸载此外,Play Store 和 AppStore 都有监控安装和卸载的工具.您不需要手动构建这样的系统,因为它只会浪费服务器使用.

Are you using Firebase analytics? If you are, it automatically detects installs and uninstalls Also, Play Store and AppStore, both have tools to monitor installs and uninstall. You don't need to manually build such a system as it will only waste server usage.

这篇关于FCM 检测 IOS 上的应用程序卸载(firebase 云消息推送通知)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆