Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push Notification after resign an iPhone application

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.

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

Thanks.

like image 388
John Avatar asked Jun 04 '26 05:06

John


1 Answers

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.

like image 133
user1323655 Avatar answered Jun 06 '26 20:06

user1323655



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!