問題描述:用appstore證書打包ipa后交給第三方用企業簽名然后分發,app無法接收到消息推送
解決思路:確保appstore證書推送正常情況下,讓企業賬號注冊一個新的appid,并且生成推送證書,讓push notification功能處于enable狀態。
解決關鍵步驟
1.簽名過程中修改Entitlements.plist文件,application-identifie 修改成 新的prefix+bundleId,keychain-access-groups 第一個元素的值改為新的prefix
2.重簽名:codesign -f -s "iPhone Distribution: inhouse" --entitlements Entitlements.plist --resource-rules Payload/appstore.app/ResourceRules.plist Payload/appstore.app
參考鏈接:http://www.cocoachina.com/bbs/read.php?tid-282106.html
https://blog.csdn.net/wadahana/article/details/44926799
==================2018-11-15 update=========================
企業重新簽名后,無論通知功能屬于企業版還是原版,通知功能均會失效