[英]Can an app receive a token from a push server even if the user has declined the app to receive push notifications?
If when an app launches and registers with the Apple servers the user selects Don't Allow when the app/os displays the dialog to inform the user that the app wishes to send push notifications, then does the registration process still proceed but the app never receives any notifications, or is the registration process aborted at that point? 如果应用启动并在Apple服务器上注册时,当用户在应用/操作系统显示对话框以通知用户该应用希望发送推送通知时选择了“不允许”,则注册过程仍会继续进行,但是该应用永远不会收到任何通知,还是此时注册过程中止?
In other words, could an app still register and receive a token from the push notification servers even if the user has declined, but it can't actually be used for anything? 换句话说,即使用户拒绝了,应用程序是否仍可以注册并接收来自推送通知服务器的令牌,但实际上不能用于任何事情?
Unfortunately, no. 抱歉不行。 The callback "application:didRegisterForRemoteNotificationsWithDeviceToken:" will not be called if the user does not approve the dialog and that's the only way to retrieve the token. 如果用户不批准对话框,则不会调用回调“ application:didRegisterForRemoteNotificationsWithDeviceToken:”,这是检索令牌的唯一方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.