[英]Do Push Notifications with content-available work for users that have disabled Push Notifications?
I'm looking into reliable ways of updating an iOS app with content of critical importance, when instructed to do so by a server. 在服务器指示的情况下,我正在研究用至关重要的内容更新iOS应用程序的可靠方法。
This would have to trigger regardless of the state of the app (foreground, background, not running, etc). 无论应用程序的状态如何(前景,背景,未运行等),都必须触发该事件。 Most sources seem to indicate that Push Notifications with the content-available: 1
parameter are able of doing this. 大多数消息似乎表明具有content-available: 1
参数的Push Notifications能够做到这一点。
My question is, what happens if the user either presses Cancel when prompted to allow the app to receive push notifications, or turns them off afterwards ? 我的问题是,如果用户在提示允许应用程序接收推送通知时按“取消”,或随后将其关闭,会发生什么情况? Is he only not going to receive alerts anymore, or will the push notifications be entirely ignored (including the content update) ? 他是不是仅不再接收警报,还是将完全忽略推送通知(包括内容更新)? And if so, is there any other iOS feature that would reliably allow me to update the app's content (regardless of app state and without the user being able to disable it) ? 如果是这样,是否还有其他iOS功能可以可靠地允许我更新应用程序的内容(无论应用程序状态如何且用户无法禁用它)?
This is about iOS 7 and above. 这是关于iOS 7及更高版本的。
If user disallows the push notifications , you can not send them the notifications forcefully. 如果用户不允许推送通知,则无法强制向他们发送通知。
What kind of data you want to update afterwards? 您之后要更新哪种数据?
Most of the data can be changed dynamically by web services... Web服务可以动态更改大多数数据...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.