【发布时间】:2019-03-13 22:14:43
【问题描述】:
我们的应用在 iOS 和 Android 上运行,并通过 Firebase 接收通知。
我们需要能够在用户卸载应用时立即检测到,以便我们可以通过其他方式(例如 SMS 或 SMTP)发送通知。
这对 Android 来说很好,因为我们可以在发送通知之前通过 Firebase Admin API 检测 App IID 是否仍然有效。
但这不适用于向 iOS 发送的通知。如果用户卸载,Firebase 仍然认为 App IID 有效,并将通知转发到 APN 网关(显然设备上没有任何显示,因为 App 已经消失)。
那么 - 服务器如何检测到 iOS 应用已安装?
谢谢。
【问题讨论】:
-
在 iOS 中,无法检测到该应用已被卸载。
-
@BohdanSavych 你确定吗?因为在 FCM 文档中写到
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.firebase.google.com/docs/cloud-messaging/…
标签: ios firebase firebase-cloud-messaging apn