[英]Can i restrict users from using my app when user has declined let say, like push notifications
[英]Can an app receive a token from a push server even if the user has declined the app to receive push notifications?
如果應用啟動並在Apple服務器上注冊時,當用戶在應用/操作系統顯示對話框以通知用戶該應用希望發送推送通知時選擇了“不允許”,則注冊過程仍會繼續進行,但是該應用永遠不會收到任何通知,還是此時注冊過程中止?
換句話說,即使用戶拒絕了,應用程序是否仍可以注冊並接收來自推送通知服務器的令牌,但實際上不能用於任何事情?
抱歉不行。 如果用戶不批准對話框,則不會調用回調“ application:didRegisterForRemoteNotificationsWithDeviceToken:”,這是檢索令牌的唯一方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.