cordova-app-updater icon indicating copy to clipboard operation
cordova-app-updater copied to clipboard

can't read index.html

Open magude opened this issue 8 years ago • 10 comments

content and path is correct, but can't show the content of index.html. perhaps iOS don't permit to do like this. open file://**index.html under app-directory is possible。 error:Received an unexpected URL from the web process: 'file:///Users/mac/Library/Developer/CoreSimulator/Devices/A1BE91E9-93D8-446E-8631-164EAC873377/data/Containers/Data/Application/3789B421-894D-4278-8960-5D1E64DD6B47/Documents/cache/www/index.html' Received an invalid message "WebPageProxy.DecidePolicyForNavigationAction" from the web process.

magude avatar May 15 '16 02:05 magude

Hi.

Are you have the latest cordova-ios? Also, please provide your config.xml

mnill avatar May 15 '16 06:05 mnill

My version of the Cordova is 6.1,is the lastest. This morning, I have tried to change OC codes by modifying "startPage", But page is refreshing again and again, I feel the reason is that updating file is the same as the showing file. Oh, I'm going to give up, help me! ----config.xml----

magude avatar May 15 '16 09:05 magude

Please provide correct config.xml :-)

mnill avatar May 15 '16 10:05 mnill

There is config.xml for testing. instruction: cordova create test cd test cordova platform add ios cordova plugin add https://github.com/mnill/cordova-app-updater

copy\paste my config

cordova run ios --device config.xml.zip

mnill avatar May 15 '16 10:05 mnill

Thank you. I try agin.

magude avatar May 15 '16 10:05 magude

Thanks. I have seen the reason . It is because I intalled WKWebview plugin.

magude avatar May 15 '16 13:05 magude

I've got the same error messages when I use cordova-plugin-wkwebview-engine plugin. May I ask, do you have a plan to go with cordova-plugin-wkwebview-engine?

jiangluu avatar Aug 03 '16 04:08 jiangluu

@jiangluu why you use it?

mnill avatar Aug 03 '16 06:08 mnill

I thinks it's probably because it as better perfs than the native webview. For example people on ionic2 forum say it has better render perfs.

Yimiprod avatar Aug 04 '16 09:08 Yimiprod

For now I no have enough time to take a look to it. May be later.

mnill avatar Aug 08 '16 12:08 mnill