Environment: MAC EL Capitan 10.11.6 , xCode Version 7.3.1, Node version: v5.5.0, Cordova version: 6.3.1, cordova-plugin-mfp-push 8.0.2016070407, MobileFirst Platform Foundation Command Line Interface (CLI): 8.0.0-2016070716
Question: Why can I not run a cordova app on a real ios device, after the installation of the cordova-mfp-push plugin? The ios app runs in the ios simulator. Who had the same problem and how did you find it?
Backround: I have a cordova app which was working with mfp8 push.
Because of the Apple Certification expiration problem (https://developer.apple.com/support/certificates/expiration/), I had to recreate the certificates.
Problem: After the recreation of the certifications I tried to run the app on my device. But I got the certification error. Based on this I tried to run other Cordova Apps on my iOS device and this was possible.
Based on this finding I decide to add and remove the cordova plugins and check, when will this problem appear.
Finding: My finding is: when I add the cordova-mfp-push plugin, then the problem with the certification appears in xcode.
I guess the reason is the cordova-mfp-push plugin automatically switch on the functionality “Backround Modes -> remote notifications”.
Here you can see the two situations with the ios app:
- Before add cordova-mfp-push to the cordova app:
In xCode running app ... ok the MFP push lib can not be found, but this is clear why.
In xCode no additional options enabled
- After add cordova-mfp-push to the cordova app:
Console output
IBMs-MBP:MobileClientV3 tsuedbroecker$ cordova plugin add cordova-plugin-mfp-push --save
Fetching plugin "cordova-plugin-mfp-push" via npm
Installing "cordova-plugin-mfp-push" for android
Dependent plugin "cordova-plugin-mfp" already installed on android.
Installing "cordova-plugin-mfp-push" for ios
Dependent plugin "cordova-plugin-mfp" already installed on ios.
Saved plugin info for "cordova-plugin-mfp-push" to config.xml
IBMs-MBP:MobileClientV3 tsuedbroecker$ cordova prepare
Running command: /Users/tsuedbroecker/Documents/tsuedbro/MobileBluemix/dev/mfp8beta/CheckApp/MobileClientV3/hooks/after_prepare/010_add_platform_class.js /Users/tsuedbroecker/Documents/tsuedbro/MobileBluemix/dev/mfp8beta/CheckApp/MobileClientV3
add to body class: platform-android
add to body class: platform-ios
will push strings array {"name":"lang","titles":["English (US)","English (UK)"],"values":["en-us","en-gb"]}
android preferences file was successfully generated
ios settings bundle was successfully generated
IBMs-MBP:MobileClientV3 tsuedbroecker$ cordova plugin list
cordova-plugin-app-preferences 0.99.2 "AppPreferences"
cordova-plugin-camera 2.2.0 "Camera"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-console 1.0.3 "Console"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-dialogs 1.2.1 "Notification"
cordova-plugin-geolocation 2.2.0 "Geolocation"
cordova-plugin-globalization 1.0.3 "Globalization"
cordova-plugin-inappbrowser 1.4.0 "InAppBrowser"
cordova-plugin-mfp 8.0.2016080320 "IBM MobileFirst Platform Foundation"
cordova-plugin-mfp-push 8.0.2016070407 "IBM MobileFirst Platform Foundation - Push Notifications"
cordova-plugin-okhttp 2.0.0 "OkHttp"
cordova-plugin-spinner-dialog 1.3.1 "SpinnerDialog"
Problem to run on device:
Changed configuration in xCode by the plugin: