简体   繁体   English

Ionic-缺少推送通知权利

[英]Ionic - Missing Push Notification Entitlement

I have two Ionic apps. 我有两个Ionic应用程序。 I have one that I submitted a while back just fine. 我有一个我刚刚提交的。 Now I keep getting this error when I submit a build on the other app. 现在,当我在另一个应用程序上提交构建时,仍然收到此错误。

Missing Push Notification Entitlement - Your app appears to include API
used to register with the Apple Push Notification service, but the app 
signature's entitlements do not include the "aps-environment" 
entitlement. If your app uses the Apple Push Notification service, make 
sure your App ID is enabled for Push Notification in the Provisioning 
Portal, and resubmit after signing your app with a Distribution 
provisioning profile that includes the "aps-environment" entitlement. 
See "Provisioning and Development" in the Local and Push Notification
Programming Guide for more information. If your app does not use the 
Apple Push Notification service, no action is required. You may remove 
the API from future submissions to stop this warning. If you use a 
third-party framework, you may need to contact the developer for 
information on removing the API.

So I have tried many things: they can all be found here I tried the top 3 responses. 因此,我尝试了很多事情:在这里可以找到所有这些内容,而我尝试了前3个回答。

  1. I commented out all the Push Notifications in AppDelegate.m 我注释掉了AppDelegate.m中的所有推送通知
  2. I commented out the code and set the property in preprocessor for it to be disabled 我注释掉了代码,并在preprocessor设置了要禁用的属性
  3. I searched my project for all instances of push notifications 我在项目中搜索了推送通知的所有实例
  4. I took my good app copied the AppDelegate.m and pasted it in the bad app. 我用我的好应用程序复制了AppDelegate.m并将其粘贴到坏的应用程序中。
  5. I deleted all my local provisioning profiles. 我删除了所有本地配置文件。

So when I made my app a little while back, it asked me if I wanted push notifications. 因此,当我不久前制作我的应用程序时,它询问我是否要推送通知。 I remember clearly saying NO. 我记得清楚地说不。

Any help would be greatly appreciated! 任何帮助将不胜感激!

I am thinking maybe I just need to make the app with .bak and then recreate the app and copy my code over? 我在想,也许我只需要用.bak制作应用程序,然后重新创建该应用程序并复制我的代码即可? This is definitely a last resort. 这绝对是不得已的方法。

If your app does not use the Apple Push Notification service, no action is required. 如果您的应用程序不使用Apple Push Notification服务,则无需采取任何措施。

I've been receiving the same warning message when submitting Cordova/Ionic based iOS apps for a while now. 提交基于Cordova / Ionic的iOS应用程序一段时间以来,我一直收到相同的警告消息。 No action is required, and will not affect app approval. 无需采取任何措施,并且不会影响应用程序的批准。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM