Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Issue of refreshing on IOS after the installation is complete #349

Closed
kekeChang opened this issue Apr 24, 2018 · 1 comment
Closed

Issue of refreshing on IOS after the installation is complete #349

kekeChang opened this issue Apr 24, 2018 · 1 comment

Comments

@kekeChang
Copy link

kekeChang commented Apr 24, 2018

By reading Update workflow I noticed that '7.Update installed, and user is redirected to the index page of your application.'
I use this chcp plugin in my project and everything works well on Android including three steps: fetch-install-redirect.
The last step of 'redirect' on IOS does not works, just splash screen and the home.html didn't change, however, the release in chcp.json has been synchronized to the local device that means when I restart my app application the function called chcp.fetchUpdate() will return the error.code:2-NOTHING_TO_UPDATE. I need help.

My test device is iphone 7, IOS 11.

cordova info:

Node version: v8.9.3
Cordova version: 8.0.0
iOS platform:
Xcode 9.3
Build version 9E145

The Xcode console's info:

08.993532+0800 MyApp[427:51430] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/78D342A6-CEB0-4F84-AFAE-A6EBFD4DE1C1/Library/Cookies/Cookies.binarycookies
09.038913+0800 MyApp[427:51430] Apache Cordova native platform version 4.5.3 is starting.
09.039475+0800 MyApp[427:51430] Multi-tasking -> Device: YES, App: YES
09.050077+0800 MyApp[427:51430] Public path found: /var/containers/Bundle/Application/3128DD2A-1890-493E-AA6A-2DF47B63F79D/MyApp.app/www
09.059003+0800 MyApp[427:51430] CDVWKWebViewEngine: trying to inject XHR polyfill
09.303620+0800 MyApp[427:51430] CDVWKWebViewEngine will reload WKWebView if required on resume
09.303727+0800 MyApp[427:51430] Using Ionic WKWebView
09.304195+0800 MyApp[427:51430] [CDVTimer][console] 0.056028ms
09.304332+0800 MyApp[427:51430] [CDVTimer][handleopenurl] 0.084043ms
09.305651+0800 MyApp[427:51430] [CDVTimer][intentandnavigationfilter] 1.281023ms
09.305765+0800 MyApp[427:51430] [CDVTimer][gesturehandler] 0.079989ms
09.308134+0800 MyApp[427:51430] Currently running release version 2018.04.13-19.04.03
09.309697+0800 MyApp[427:51430] [CDVTimer][hotcodepush] 3.908038ms
09.309757+0800 MyApp[427:51430] CDVIonicKeyboard: resize mode 1
09.310409+0800 MyApp[427:51430] [CDVTimer][keyboard] 0.636935ms
09.330527+0800 MyApp[427:51430] [CDVTimer][splashscreen] 20.076036ms
09.330565+0800 MyApp[427:51430] [CDVTimer][TotalPluginStartup] 26.479006ms
09.510518+0800 MyApp[427:51609] Starting file download: http://url/mobile/app/www/build/main.js
09.561325+0800 MyApp[427:51608] Starting file download: http://url/mobile/app/www/build/main.js.map
09.577707+0800 MyApp[427:51608] Starting file download: http://url/mobile/app/www/build/vendor.js.map
10.113837+0800 MyApp[427:51609] Update is ready for installation: 2018.04.13-19.14.22
11.096850+0800 MyApp[427:51612] Starting file download: http://url/mobile/app/www/build/main.js
11.138049+0800 MyApp[427:51430] Ionic Native: deviceready event fired after 1307 ms
11.139900+0800 MyApp[427:51430] WARN: Native: tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
11.144274+0800 MyApp[427:51430] WARN: Install the StatusBar plugin: 'ionic cordova plugin add cordova-plugin-statusbar'
11.173452+0800 MyApp[427:51612] Starting file download: http://url/mobile/app/www/build/main.js.map
11.249247+0800 MyApp[427:51647] Starting file download: http://url/mobile/app/www/build/vendor.js.map
11.531853+0800 MyApp[427:51430] CDVWKWebViewEngine: handleStopScroll
11.838737+0800 MyApp[427:51612] Update is ready for installation: 2018.04.13-19.14.22
26.130004+0800 MyApp[427:51430] getVersionInfo--data: [object Object]
26.130112+0800 MyApp[427:51430] readyToInstallWebVersion:2018.04.13-19.14.22
26.156876+0800 MyApp[427:51608] Starting file download: http://url/mobile/app/www/build/main.js
26.181502+0800 MyApp[427:51850] Starting file download: http://url/mobile/app/www/build/main.js.map
26.194041+0800 MyApp[427:51647] Starting file download: http://url/mobile/app/www/build/vendor.js.map
26.800383+0800 MyApp[427:51610] Update is ready for installation: 2018.04.13-19.14.22
26.820426+0800 MyApp[427:51430] fetchUpdate--data: [object Object]
41.700452+0800 MyApp[427:51430] CDVWKWebViewEngine shouldReloadWebView::
41.700495+0800 MyApp[427:51430] CDVWKWebViewEngine shouldReloadWebView title: Ionic App
41.700506+0800 MyApp[427:51430] CDVWKWebViewEngine shouldReloadWebView location: http://localhost:8080/
41.700522+0800 MyApp[427:51430] CDVWKWebViewEngine shouldReloadWebView reload: 0
42.732696+0800 MyApp[427:51430] Ionic Native: deviceready event fired after 693 ms
42.732796+0800 MyApp[427:51430] WARN: Native: tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
42.732858+0800 MyApp[427:51430] WARN: Install the StatusBar plugin: 'ionic cordova plugin add cordova-plugin-statusbar'
42.733986+0800 MyApp[427:51610] Nothing to update
42.843499+0800 MyApp[427:51430] CDVWKWebViewEngine: handleStopScroll
57.003419+0800 MyApp[427:51430] getVersionInfo--data: [object Object]
57.004258+0800 MyApp[427:51430] readyToInstallWebVersion:
57.017940+0800 MyApp[427:51863] Nothing to update

CDVWKWebViewEngine shouldReloadWebView reload: 0 What should I do?

@nordnet-deprecation-bot
Copy link
Contributor

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #371 for more information.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants