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