cordova-plugin-code-push
cordova-plugin-code-push copied to clipboard
App on Ios keeps on exiting after code-push
Description
I have a cordova project and configured it for code-push. I find that it works as expected on Android, but on IOS it clearly downloads the release but fails to install it. From code-push-cli I see that it remains i the pending state. After the release is downloaded, the app closes and I cannot start it again. It keeps closing. It doesn't do rollback either.
My config.xml looks like this (I changed the actual deployment keys):
I also have the following code in the "deviceready" listener:
codePush.sync(null, { updateDialog: false, installMode: InstallMode.ON_NEXT_RESTART });
Reproduction
- Install the original build.
- Wait until the app finds the update
The app will close after a minute and cannot be started again
Additional Information
cordova-plugin-code-push version: 1.1.20 and 1.1.19 and 1.1.16, got the same result List of installed plugins: cordova-plugin-camera npm ^4.1.0 4.1.0 android,ios,winphone cordova-plugin-camera-preview npm ^0.11.0 0.11.0 android,ios,winphone cordova-plugin-code-push npm 1.11.16 1.11.16 android,ios,winphone cordova-plugin-file npm ^6.0.2 6.0.2 android,ios,winphone cordova-plugin-file-transfer npm ^1.7.1 1.7.1 android,ios,winphone cordova-plugin-geolocation npm ^4.0.2 4.0.2 android,ios,winphone cordova-plugin-inappbrowser npm ^2.0.2 2.0.2 android,ios,winphone cordova-plugin-splashscreen npm ^5.0.3 5.0.3 android,ios,winphone cordova-plugin-whitelist npm ^1.3.4 1.3.4 android,ios,winphone cordova-plugin-zip npm ^3.1.0 3.1.0 android,ios,winphone cordova.plugins.diagnostic npm ^5.0.0 5.0.0 android,ios,winphone phonegap-plugin-barcodescanner npm ^7.1.2 7.1.2 android,ios,winphone phonegap-plugin-push npm ^2.2.3 2.2.3 android,ios,winphone
- Cordova version: 4.5.5, phonegap-cli-9.0.0
- iOS/Android/Windows version: 5.0.1 / 8.0.0 / 7.0.0
- Does this reproduce on a debug build or release build? I could test it only in debug build
- Does this reproduce on a simulator, or only on a physical device? I tried only on physical device.
Please help me out as I am stuck right now. Many thanks, Csaba
After starting from scratch I was able to narrow down to the problem.
Seems that code-push absolutely needs the
For some reason I removed it before, but caused not problem so far, however for code-push was a blocking issue.
Absolutely needs what? :)
I have the same problem btw, but not sure why
Sorry:
This tells which page to open when application (re)starts.