cordova-plugin-code-push icon indicating copy to clipboard operation
cordova-plugin-code-push copied to clipboard

App on Ios keeps on exiting after code-push

Open cszasz opened this issue 5 years ago • 4 comments

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):

Test EatWithMe Dining application application application Need location access to find things nearby

I also have the following code in the "deviceready" listener:

codePush.sync(null, { updateDialog: false, installMode: InstallMode.ON_NEXT_RESTART });

Reproduction

  1. Install the original build.
  2. 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

cszasz avatar Jul 23 '19 09:07 cszasz

After starting from scratch I was able to narrow down to the problem. Seems that code-push absolutely needs the from the config.xml file.

For some reason I removed it before, but caused not problem so far, however for code-push was a blocking issue.

cszasz avatar Jul 23 '19 14:07 cszasz

Absolutely needs what? :)

Yuripetusko avatar Sep 04 '19 23:09 Yuripetusko

I have the same problem btw, but not sure why

Yuripetusko avatar Sep 04 '19 23:09 Yuripetusko

Sorry:

This tells which page to open when application (re)starts.

cszasz avatar Sep 05 '19 05:09 cszasz