I’m trying to set up my app to alert the user when a new update is available via the “Deploy” service, but allow them to choose when to download and install it.
I already have it checking, download, and extracting the update, but I’m running into an error when I try use “Pro.deploy.reloadApp()” to actually install it and reload the app to reflect the updates. Only a white screen appears, and the Chrome remote device console is alerting me “the cordova-plugin-ionic plugin is not installed. Install it for better device information for runtime errors.”
I’m running Ionic v4.0.0beta15 and “cordova-plugin-ionic” v5.2.7, attempting to run this on a Samsung Android tablet running Android 8.0
I’ve gotten past that error by adding to the index.html page, but I’m running into a new problem. The console says that the app has loaded, and “Ionic Native: deviceready event fired after 188 ms”, but the app hangs on the splashscreen. Just a spinning “loading” wheel and nothing actually loading.
[app-scripts] [14:16:40] console.log: ionViewDidLoad HotUpdatePage
[app-scripts] [14:16:41] console.log: Starting IonicTimer CleanSnapshotDir
[app-scripts] [14:16:41] console.log: No directory found for snapshot no need to delete
[app-scripts] [14:16:41] console.log: Finished IonicTimer CleanSnapshotDir in 0.009 seconds.
[app-scripts] [14:16:41] console.log: Cleaned version directory
[app-scripts] [14:16:41] console.log: Starting IonicTimer CopyBaseApp
[app-scripts] [14:16:41] console.log: Finished IonicTimer CopyBaseApp in 0.11 seconds.
[app-scripts] [14:16:41] console.log: Copied base app resources
[app-scripts] [14:16:41] console.log: Downloading update...
[app-scripts] [14:16:41] console.log: Starting IonicTimer downloadTimer
[app-scripts] [14:16:41] console.log: About to download 4 new files for update.
[app-scripts] [14:16:42] console.log: Message: downloaded batch 0 of 4 downloads Done downloading all 4 files Diff IonicTimer
[app-scripts] downloadTimer in 0.819 seconds.
[app-scripts] [14:16:42] console.log: Finished IonicTimer downloadTimer in 0.82 seconds.
[app-scripts] [14:16:42] console.log: IonicTimer extra Downloaded 4 files
[app-scripts] [14:16:42] console.log: Extracting...
[app-scripts] [14:16:42] console.log: Restaring app...
At this stage the app screen is all white… if I restart the app in the simulator It gets stuck at splashscreen with console log:
[app-scripts] [14:30:25] console.log: Ionic Pro initializing (app id: xxx ) color: blue color: black
[app-scripts] [14:30:26] console.log: Constructing auth service
[app-scripts] [14:30:26] console.log: rootNav set
[app-scripts] [14:30:26] console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
[app-scripts] mode.
[app-scripts] [14:30:26] console.log: Current: versionCode: 0.3.1 versionName: 0.3.1
[app-scripts] [14:30:26] console.log: update: versionCode: 0.3.1 versionName: 0.3.1