简体   繁体   English

即使用户拒绝了应用程序接收推送通知,应用程序也可以从推送服务器接收令牌吗?

[英]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.

相关问题 当用户拒绝时,我可以限制用户使用我的应用程序,比如推送通知 - Can i restrict users from using my app when user has declined let say, like push notifications iOS应用程序可以直接接收Google Drive推送通知吗? - Can An iOS App Receive Google Drive Push Notifications Directly? 如何接收其他应用的推送通知? - How can I receive push notifications of an other app? iOS应用未收到来自Firebase的后台推送通知 - iOS app doesn't receive background push notifications from Firebase 无法从Pushwoosh接收到TestFlight分布式应用程序的推送通知 - Unable to receive push notifications from Pushwoosh to TestFlight distributed app 应用程序打开时如何接收应用内推送通知? - How to receive in - app push notifications when app is open? 找出用户是否已接受接收推送通知? - Find out if user has accepted to receive Push Notifications? 我的iPhone应用程序可以注册接收其他应用程序的推送通知吗? - Can my iPhone app register to receive push notifications meant for another app? 设备在Apple推送通知中使用令牌注册,但不接收来自服务器的通知 - Devices are registered with token in Apple Push Notification but don't receive notifications from the server 带有 Firebase 的 Mac Catalyst 应用程序不会收到推送通知 - Mac Catalyst App with Firebase won't receive push notifications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM