Cordova 如何删除“推送通知"在 iOS 上 [英] Cordova how to remove "Push notification" on iOS
问题描述
我使用 Apache Cordova 向 Apple Store 提交了我的应用程序,但我收到了来自 Apple 的警告缺少推送通知权利".
I submitted my application using Apache Cordova to Apple Store and I got a warning from apple that "Missing Push Notification Entitlement".
但似乎我从未在我的应用程序中使用过推送通知".如何从我的应用程序中删除它?它在 Apache Cordova 中是默认的吗?
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 Apache Cordova?
推荐答案
如何正确"为 CORDOVA 应用程序执行此操作:
我也遇到了这个问题.@michaelb 提出的解决方案奏效了,但看到整个事情都包含在条件编译(即 #ifndef DISABLE_PUSH_NOTIFICATIONS
)中,我很沮丧,我决定学习如何添加预处理器宏",它基本上是告诉 XCode 编译你的应用程序,而忽略这段代码.
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.
这是您可以通过 UI 以图形方式定义 DISABLE_PUSH_NOTIFICATIONS
预编译符号的方式(请注意,这是在 XCode 6.1 中完成的方式):
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屋!