Cordova如何删除“推送通知”在iOS上 [英] Cordova how to remove "Push notification" on iOS

查看:407
本文介绍了Cordova如何删除“推送通知”在iOS上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cordova向Apple Store提交了我的申请,并收到来自苹果的警告缺少推送通知授权。



但我似乎从来没有在我的应用程序中使用推送通知。如何从我的应用程序中删除它?

解决方案

如何正确地为CORDOVA应用程序执行此操作:



我也遇到过这个问题。 @michaelb提出的解决方案工作,但我很沮丧,看到整个事情被包装在条件编译(即 #ifndef DISABLE_PUSH_NOTIFICATIONS ),我决定学习如何添加'Preprocessor Macro',它基本上告诉XCode编译你的应用程序与这一点的代码遗漏。



这是如何通过UI以图形方式定义 DISABLE_PUSH_NOTIFICATIONS 预编译符号(注意,在XCode 6.1中完成):



< img src =https://i.stack.imgur.com/mFTlp.pngalt =enter image description here>



希望这个帮助其他人在同样的情况下。


I submitted my application using cordova to Apple Store and i got an warning from apple that "Missing Push Notification Entitlement".

But it seems that i've never used "Push Notification" in my application. How can i remove it from my application? Is it default in cordova?

Thanks

解决方案

HOW TO DO THIS FOR CORDOVA APPS 'PROPERLY':

I also had this problem. The solution proposed by @michaelb worked but I was frustrated enough seeing that the whole thing was wrapped in conditional compilation (ie #ifndef DISABLE_PUSH_NOTIFICATIONS) that I decided to learn how to add a 'Preprocessor Macro', which basically tells XCode to compile you app with this bit of code left out.

This is how the you can define the DISABLE_PUSH_NOTIFICATIONS precompilation symbol graphically via the UI (note that this the way its done in XCode 6.1):

Hope this helps other people out there in same situation.

这篇关于Cordova如何删除“推送通知”在iOS上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆