【问题标题】:FCM detect app uninstall on IOS (firebase cloud messaging push notifications)FCM 检测 IOS 上的应用程序卸载(firebase 云消息推送通知)
【发布时间】:2021-08-01 15:36:56
【问题描述】:

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

但是,在 IOS 上,我总是收到 success 回复,即使是在已卸载的应用程序上。 FCM documentation 表示提供了NotRegistered

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

为什么在 IOS 应用程序上卸载 APNs Feedback Service 不会将令牌状态更新为 invalid?为什么我在卸载应用时收到success

在 Android 上一切都很好,我收到了 NotRegistered 的回复,正如预期的那样。

【问题讨论】:

    标签: ios flutter firebase-cloud-messaging apple-push-notifications


    【解决方案1】:

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

    【讨论】:

    • 嘿 @MaddyB 欢迎来到 StackOverflow 社区!是的,我正在使用 firebase 分析,但 app_remove 事件仅从 Android 设备发送(而且大部分时间根本不发送)。
    • 谢谢@genericUser!所以我们必须做一些 iOS 特定的配置来让 Firebase 分析在它上面正常运行。我不记得了,因为我只使用过一次 iOS,而且已经有一段时间了。我会调查那个项目并回复你。也许暂时使用 AppStore 分析
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-18
    • 1970-01-01
    • 2020-07-08
    • 2018-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多