user2570135
user2570135

Reputation: 2989

Cannot run on device after installing 'cordova-plugin-mfp-push'

I am having an issue running my app on the device after installing the "cordova-plugin-mfp-push".

In Xcode , I see the error..

Unable to install "my app"

the certificate used to sign "myapp" has either expired or has been revoked. An updated certificate is required to sign and install the application.

When I remove the plugin the error goes away and I can deploy to my phone.

Can you give some hints on how to debug this issue. My certs is valid and push is enable for the certs.

I am using MobileFirst version 8 , xCode 7.3 with the mfp template

Thanks for your help

Upvotes: 0

Views: 351

Answers (3)

smitach
smitach

Reputation: 11

I was facing the same issue. After adding mfp-push plugin I was unable to install the app on iPhone with error saying "The application does not have valid signature". I could resolve this by removing cordoba-plugin-mfp-push & also cordova-plugin-mfp, then adding only cordova-plugin-mfp-push, which in turn adds cordova-plugin-mfp.

Upvotes: 0

ENG618
ENG618

Reputation: 1012

To help propagate the changes that are added by the push framework removing the ios environment and adding it back in has resolved a similar issue in my environment:

$ cordova remove ios $ cordova add ios@latest

Once you have re added the ios platform run cordova prepare and cordova build ios

Once the above steps are completed you can open the project in Xcode. Here Xcode will find two warnings that can be automatically handled by Xcode that are worth updating. Review what will be updated and correct the warnings. See image below:

xcode auto fix

At this point you should be able to run the project successfully.

Upvotes: 1

M_G
M_G

Reputation: 1208

dUsing APNS requires the Push Notification capability and therefore a new certificate. You can renew the certificate within the Apple Developer Portal (Certificates, Identifiers & Profiles). Alternatively you could use Xcode 8 which simplifies certificate handling a lot when using automatic code signing.

Upvotes: 0

Related Questions