Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Cordova and XCode 8, how can I run iOS build with Push Notification capabilities?

I'm using Ionic/Cordova to build an Android and iOS app. Before deployments, I use Jenkins to run 'ionic build ios --device' to create a final IPA file for QA to test against. Unfortunately, using xCode 8 you now have to manually enable the Push Notification capability in the XCode project capabilities settings.

Is there a way to pass capabilities to ionic build or cordova build so that push notifications will be enabled when building via CLI?

like image 401
Mark Roach Avatar asked Oct 12 '16 20:10

Mark Roach


People also ask

How do I enable push notifications entitlement?

To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app.

What is the latest Cordova iOS version?

Cordova iOS 6.2. 0 Released! We are happy to announce that we have just released Cordova iOS 6.2. 0 !


1 Answers

If you update Cordova CLI to 6.4.0, update your platform to cordova-ios 4.3.1 and update the phonegap-plugin-push to 1.9.2 then everything should work.

If you are using another plugin, it will need an update.

You can also download Xcode 7 from the Apple developer website and continue using it until Apple makes Xcode 8 mandatory.

like image 97
jcesarmobile Avatar answered Oct 24 '22 22:10

jcesarmobile