iPhone - 应用程序卸载通知 [英] iPhone - App Uninstallation notification

查看:155
本文介绍了iPhone - 应用程序卸载通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在卸载我的iOS应用程序时从App Store或APN收到通知?

How can I get a notification from App Store or APNs when my iOS App gets uninstalled?

此外,如果我发送推送通知我的应用程序的设备卸载了,会发生什么?苹果会禁止这种流氓推送通知吗?

Also, if I send a push notification for the device where my App is uninstalled, what happens? Will Apple ban for such rogue Push notifications?

推荐答案

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

There isn't a way that your app will know if it is uninstalled. Also I do not believe there is anyway Apple will tell you if your app is uninstalled.

苹果推送通知服务的反馈服务确实提供了一种了解设备是否无法接收通知的方法。但是,这并不保证设备已卸载,只是因为任何原因无法接收推送通知。

Apples Push Notification Service's FeedBack Service does provide a way to know if a device cannot receive a notification. However this does not guarantee that the device was uninstalled, only that it, for whatever reason, can not receive push notifications.


如果提供商尝试向应用程序发送推送通知,但设备上不再存在该应用程序,设备会向Apple推送通知服务报告该事实。当用户卸载应用程序时,通常会发生这种情况。如果设备报告应用程序的失败传递尝试,则APN需要某种方式通知提供者,以便它可以避免向该设备发送通知。这样做可以减少不必要的消息开销并提高整体系统性能。

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.

为此,Apple推送通知服务包含一个反馈服务,APN通过每个应用程序的设备列表不断更新有失败的交付尝试。

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.

这篇关于iPhone - 应用程序卸载通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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