简体   繁体   English

phonegap ios:当用户为权限请求框选择“不允许”时,推送通知冻结

[英]phonegap ios: push notification freezes when user selected “Don't Allow” for the permission request box

I have followed the example to install the push notification plugin for my ios Phonegap app. 我已按照示例为ios Phonegap应用安装推送通知插件。 When I open my app, the push notification permission request box was shown. 当我打开我的应用程序时,将显示推送通知权限请求框。 It works perfectly when I select "OK". 当我选择“确定”时,它可以完美工作。 But when I select "Don't Allow", my app freezes and the console log shown "Attempting to badge the application icon but haven't received permission from the user to badge the application". 但是,当我选择“不允许”时,我的应用程序冻结,并且控制台日志显示为“试图标记应用程序图标,但尚未获得用户的许可以标记应用程序”。

please help...Thank you. 请帮助...谢谢。

On the file .../YOUR_PROJECT/platforms/ios/YOUR_PROJECT/YOUR_PROJECT-info.plist 在文件上... / YOUR_PROJECT / platforms / ios / YOUR_PROJECT / YOUR_PROJECT-info.plist

Put these lines obeying the tags 遵循标签放置这些行

<key>UIBackgroundModes</key>
<array>
  <string>remote-notification</string>
</array>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找出用户在iOS显示的UIAlertView上选择的按钮的方式,请求允许该应用接收推送通知的权限 - Way to find out which button the user selected on the UIAlertView displayed by iOS ,asking permission to allow the app to receive push notification 跟踪用户对推送通知的选择[允许/禁止] - track user choice for Push Notification [allow/don't] xamarin iOS:位置请求如何找出用户点击“允许”或“不允许”的时间 - xamarin iOS: Location Request how to find out when user clicks “Allow” or “Don't allow” is clicked iOS 5推送通知权限 - iOS 5 Push notification permission 如何检测用户是否在Apple的推送通知确认提醒中点击“不允许” - How to detect if user tap on “Don't Allow” on Apple's push notification confirmation alert 当用户不允许在iOS中访问时如何关闭imagePicker - How to dismiss imagePicker when user don't allow access in iOS 点击推送通知的“不允许”按钮获取设备令牌 - Getting the Device Token when tapping the “Don't Allow” button for Push Notification phonegap ios)是否可以区分用户单击的推送通知? - phonegap ios) is it possible distinguish push notification that user clicked? 带iO的Phonegap推送通知插件 - Phonegap push notification plugin with iOs Phonegap + iOS +解析推送通知 - Phonegap + iOS + Parse Push Notification
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM