开发者

Push Notification after resign an iPhone application

开发者 https://www.devze.com 2023-03-31 05:04 出处:网络
I am wondering to know how to use command line to resign an application (with push notification) correctly.

I am wondering to know how to use command line to resign an application (with push notification) correctly.

Here are some background:

  • My original application works well with Push Notification.
  • If I resign the application via "Organizer -> Archives -> Share" with any developer cert, Push notification still works
  • If I resign the application via command line codesign -f -s "iPhone Distribution: *****" -vv path/to/app, the app still works well. However, push notification stop working with message No valid 'aps-environment' entitlement string found for application 'MyPushTest': (null). Notifications will not be delivered.
开发者_如何学Go

Is there anybody know how to use command line do a correct resign, after which push notification will work as normal?

Thanks.


If your mobileprovisioning profile will allow push notifications - everything should run smoothly. Please note - wildcard mobileprovisioning profiles does not support push notifications.

To check if mobileprovisioning is compatible with push notifications - check "aps-environment" string presence in the profile. It should be set to "development" for Sandbox and "production" for Production gateway.

You might want to check www.aironapp.com. It does the recodesigning for you. You will need to configure Apple Dev Account in the settings.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号