2015-09-04 114 views
0

我有兩個離子應用程序。我有一個,我提交了一段時間後很好。現在,當我在另一個應用程序上提交構建時,我不斷收到此錯誤。離子 - 缺失推送通知權利

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. 

所以我已經嘗試了許多事情:他們都可以找到here 我嘗試了前3名的響應。

  1. 我AppDelegate.m註釋掉所有推送通知
  2. 我註釋掉的代碼,並設置該屬性在preprocessor爲它
  3. 我搜索我的項目推送通知
  4. 的所有實例被禁用
  5. 我把我的好應用程序複製到AppDelegate.m並將其粘貼到不好的應用程序中。
  6. 我刪除了所有本地供應配置文件。

因此,當我稍後回到應用程序時,它詢問我是否需要推送通知。我記得清楚地說不。

任何幫助將不勝感激!

我在想也許我只需要用.bak製作應用程序,然後重新創建應用程序並複製我的代碼?這絕對是最後的手段。

+2

我不會擔心太多。我一直在爲我還沒有添加推送通知代碼的應用程序收到相同的消息。沒有第三方框架或庫,所有我自己的代碼,所以我可以自信地說,我沒有提及Push,也沒有提及。該消息在過去的2-3周內開始出現。如果任何人有推送通知能力,並看到這一點,然後作爲警報說,他們只需要重新檢查配置文件有它,儘管在一天結束時它只是一個消息,而不是警告。 –

+0

好的!我將我的應用程序提交給應用程序商店。我們會看到他們說什麼。 –

+1

酷,我已經提交(更新)它,一切都很好!祝你好運與應用程序 –

回答

1

如果您的應用不使用Apple推送通知服務,則不需要執行 操作。

我一直在提交基於Cordova/Ionic的iOS應用程序一段時間後收到相同的警告消息。不需要採取任何行動,也不會影響應用審批。

+1

謝謝。這可能非常混亂。 –

+0

同意。並不總是清楚什麼可以或不會讓你的應用程序被拒絕。 –