Deploy Live Updates - reload the web view error

I have followed the step by step on the “Continuous Deployment & Live Updates with Ionic Deploy” from Matt’s video.

Downloading an update from “production” channel is working, but seeing the following errors from xcode console after downloading is complete and to reload the web view.


018-04-12 16:55:01.847674-0500 deploy-video[4084:1203889] Zip Extraction: 99%
2018-04-12 16:55:01.848506-0500 deploy-video[4084:1203889] Zip Extraction: 100%
2018-04-12 16:55:01.851600-0500 deploy-video[4084:1203889] Zip Extraction: 100%

2018-04-12 16:55:01.858823-0500 deploy-video[4084:1203889] Removed Version ab7dc1b3-32d8-433e-9cef-4f571057dd08 success? 1
2018-04-12 16:55:01.858839-0500 deploy-video[4084:1203889] Version Count: 1
2018-04-12 16:55:01.859366-0500 deploy-video[4084:1203889] Excluding /var/mobile/Containers/Data/Application/52A0B689-6136-4BA9-AC18-7A5BD4E19FFA/Library/Application Support/ from backup
2018-04-12 16:55:01.859381-0500 deploy-video[4084:1203889] updating version label
2018-04-12 16:55:01.860503-0500 deploy-video[4084:1203889] Unzipped…
2018-04-12 16:55:01.860517-0500 deploy-video[4084:1203889] Removing www.zip 1
2018-04-12 16:55:01.861205-0500 deploy-video[4084:1203889] uuid is: 92ffd8e4-77d5-45a3-95db-cd27e6c7f5e9
2018-04-12 16:55:01.861221-0500 deploy-video[4084:1203889] ignore version: NOTHING_TO_IGNORE
2018-04-12 16:55:01.865159-0500 deploy-video[4084:1203957] Redirecting to: file:/var/mobile/Containers/Data/Application/52A0B689-6136-4BA9-AC18-7A5BD4E19FFA/Library/Application%20Support/92ffd8e4-77d5-45a3-95db-cd27e6c7f5e9/index.html?cordova_js_bootstrap_resource=/var/containers/Bundle/Application/A0756349-198A-4192-9FAC-3032A261CD7E/deploy-video.app/www/cordova.js
2018-04-12 16:55:01.865203-0500 deploy-video[4084:1203889] Reloading the web view.
2018-04-12 16:55:01.871565-0500 deploy-video[4084:1203889] Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)

3 Likes

Bump, seeing the exact same issue. In addition, my snapshots are not actually applying.

As far as I can tell, it happened after upgrading Pro Deploy and WKWebView (if you happen to be using that), but I’m not entirely sure

Adding the followings to config.xml did get rid of “Failed to load webpage with error” but now i am getting another error…

[BoringSSL] Function boringssl_session_errorlog: line 2881 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert

Never mind. Still getting the same error.

2018-04-16 10:43:37.986834-0500 deploy-video[9311:2641357] updating version label
2018-04-16 10:43:37.987559-0500 deploy-video[9311:2641357] Unzipped…
2018-04-16 10:43:37.987570-0500 deploy-video[9311:2641357] Removing www.zip 1
2018-04-16 10:43:37.988307-0500 deploy-video[9311:2641357] uuid is: a848e9a9-7ca2-49e7-8a64-9704933a1daf
2018-04-16 10:43:37.988319-0500 deploy-video[9311:2641357] ignore version: NOTHING_TO_IGNORE
2018-04-16 10:43:37.991475-0500 deploy-video[9311:2641396] Redirecting to: file:/var/mobile/Containers/Data/Application/5D39F18A-EE12-47D1-B16F-E6F5F67A34AA/Library/Application%20Support/a848e9a9-7ca2-49e7-8a64-9704933a1daf/index.html?cordova_js_bootstrap_resource=/var/containers/Bundle/Application/7B191012-A763-42B7-A57F-C4F1CFB1F56B/deploy-video.app/www/cordova.js
2018-04-16 10:43:37.991521-0500 deploy-video[9311:2641357] Reloading the web view.
2018-04-16 10:43:37.997174-0500 deploy-video[9311:2641357] Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
2018-04-16 10:43:38.421809-0500 deploy-video[9311:2641357] Ionic Native: deviceready event fired after 357 ms

Downgradecordova-plugin-ionic to 4.0.1 and cordova-plugin-ionic-webview to 1.1.16 works

1 Like

Yup, that’s what Ive been doing across the board.

While 4.1.4 was a step in the right direction, it unfortunately did not solve these deploy and reload issues.

Same problem!
Fixed, thanks to @oncallfnb :slight_smile:

Hi all! I was having this same problem and rolled back cordova-plugin-ionic to 4.0.1 and cordova-plugin-ionic-webview to 1.1.16 as mentioned here. This works if I build locally on my machine, but building the package through Ionic Pro gives:

[20:53:00]: Exit status of command 'cordova platform add ios --nofetch' was 1 instead of 0.
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: com.ecofitdev.installapp
	Name: installapp
iOS project created with cordova-ios@4.5.5
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-whitelist@^1.3.3" via npm
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-device@^2.0.2" via npm
Installing "cordova-plugin-device" for ios
Adding cordova-plugin-device to package.json
Saved plugin info for "cordova-plugin-device" to config.xml
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-splashscreen@^5.0.2" via npm
Installing "cordova-plugin-splashscreen" for ios
Adding cordova-plugin-splashscreen to package.json
Saved plugin info for "cordova-plugin-splashscreen" to config.xml
Discovered plugin "cordova-plugin-ionic-keyboard" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-ionic-keyboard@^2.1.2" via npm
Installing "cordova-plugin-ionic-keyboard" for ios
Adding cordova-plugin-ionic-keyboard to package.json
Saved plugin info for "cordova-plugin-ionic-keyboard" to config.xml
Discovered plugin "cordova-plugin-camera" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-camera@^4.0.3" via npm
Installing "cordova-plugin-camera" for ios
Adding cordova-plugin-camera to package.json
Saved plugin info for "cordova-plugin-camera" to config.xml
Discovered plugin "phonegap-plugin-barcodescanner" in config.xml. Adding it to the project
Fetching plugin "phonegap-plugin-barcodescanner@^8.0.0" via npm
Installing "phonegap-plugin-barcodescanner" for ios
Adding phonegap-plugin-barcodescanner to package.json
Saved plugin info for "phonegap-plugin-barcodescanner" to config.xml
Discovered plugin "cordova-plugin-ionic-webview" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-ionic-webview@^1.1.16" via npm
Installing "cordova-plugin-ionic-webview" for ios
Adding cordova-plugin-ionic-webview to package.json
Saved plugin info for "cordova-plugin-ionic-webview" to config.xml
Discovered plugin "cordova-plugin-ionic" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-ionic@^4.0.1" via npm
Installing "cordova-plugin-ionic" for ios
Plugin dependency "cordova-plugin-splashscreen@5.0.2" already fetched, using that version.
Dependent plugin "cordova-plugin-splashscreen" already installed on ios.
Failed to install 'cordova-plugin-ionic': CordovaError: Version of installed plugin: "cordova-plugin-ionic-webview@1.2.1" does not satisfy dependency plugin requirement "cordova-plugin-ionic-webview@>=2.0.0". Try --force to use installed plugin as dependency.
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:557:37
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
Failed to restore plugin "cordova-plugin-ionic" from config.xml. You might need to try adding it again. Error: Version of installed plugin: "cordova-plugin-ionic-webview@1.2.1" does not satisfy dependency plugin requirement "cordova-plugin-ionic-webview@>=2.0.0". Try --force to use installed plugin as dependency.
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...


+------+------------------------------------+-------------+
|                    fastlane summary                     |
+------+------------------------------------+-------------+
| Step | Action                             | Time (in s) |
+------+------------------------------------+-------------+
| 1    | default_platform                   | 0           |
| 2    | build_summary                      | 4           |
| 3    | create_keychain                    | 0           |
| 4    | download_certs                     | 1           |
| 5    | import_certificate                 | 0           |
| 6    | build_pro_app                      | 132         |
| 💥   | cordova platform add ios --nofetch | 7           |
| 8    | upload_logs                        | 0           |
| 9    | shell command                      | 0           |
| 10   | delete_keychain                    | 0           |
+------+------------------------------------+-------------+

Any ideas?