mnill / cordova-app-updater

Simple plugin for hot update cordova app
MIT License
16 stars 5 forks source link

can't read index.html #6

Open magude opened 8 years ago

magude commented 8 years ago

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.

mnill commented 8 years ago

Hi.

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

magude commented 8 years ago

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---- <?xml version='1.0' encoding='utf-8'?>

mnill commented 8 years ago

Please provide correct config.xml :-)

mnill commented 8 years ago

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

magude commented 8 years ago

Thank you. I try agin.

magude commented 8 years ago

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

jiangluu commented 8 years ago

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?

mnill commented 8 years ago

@jiangluu why you use it?

Yimiprod commented 8 years ago

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.

mnill commented 8 years ago

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