gpt4 book ai didi

ios - iPhone - 应用程序卸载通知

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:49:01 25 4
gpt4 key购买 nike

当我的 iOS 应用程序被卸载时,我如何从 App Store 或 APNs 收到通知?

此外,如果我向卸载我的应用程序的设备发送推送通知,会发生什么情况? Apple 会禁止此类流氓推送通知吗?

最佳答案

您的应用无法知道它是否已卸载。另外我不相信苹果会告诉你你的应用程序是否已卸载。

Apples Push Notification Service's FeedBack Service确实提供了一种方法来了解设备是否无法接收通知。然而,这并不能保证该设备已被卸载,只能保证它无论出于何种原因都无法接收推送通知。

If a provider attempts to deliver a push notification to an application, but the application no longer exists on the device, the device reports that fact to Apple Push Notification Service. This situation often happens when the user has uninstalled the application. If a device reports failed-delivery attempts for an application, APNs needs some way to inform the provider so that it can refrain from sending notifications to that device. Doing this reduces unnecessary message overhead and improves overall system performance.

For this purpose Apple Push Notification Service includes a feedback service that APNs continually updates with a per-application list of devices for which there were failed-delivery attempts.

关于ios - iPhone - 应用程序卸载通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12217603/

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