ionic-team / cordova-plugin-ionic-webview

Web View plugin for Cordova, specialized for Ionic apps.
Apache License 2.0
487 stars 395 forks source link

err_connection_refused with cordova-android@10.0.1 #650

Closed fbrun closed 3 years ago

fbrun commented 3 years ago

On android, i set globally <preference name="Hostname" value="xxxx" /> with <allow-navigation href="https://xxxx/*"/> and <preference name="Scheme" value="https" /> (for this last one under <platform name="android">)

I install new android-cordova@10.0.1 and remove deprecated cordova-plugn-whitelist as mentionned on their github page.

But when i start my app i've an error that ionic could'nt load https://localhost/index.html page. It seems that it doesn't care of setting Hostname or/and allow-navigation settings

bigbo26 commented 3 years ago

Thanks fbrun for the post. I get the same error.

sacav1 commented 3 years ago

hi everyone ! Same issue here :'(

lawrence-yong commented 3 years ago

once i install this plugit, i start myApp with file:///android_asset/www/index.html and blank page.

MarijaPopovic commented 3 years ago

Same here, installed cordova-android@10 and removed whitelist. Is there any update on this? This is really blocking.

MarijaPopovic commented 3 years ago

Hi all, try to upgrade to cordova-android@10.1.0 and problem should be removed

sacav1 commented 3 years ago

great ! it works ! Thanks for your reply

marcxploit commented 2 years ago

Add these tags to the config.xml file

<preference name="hostname" value="localhost" />
<preference name="AndroidInsecureFileModeEnabled" value="true" />
chitgoks commented 7 months ago

adding those 2 results in err file not found file:///android_asset/www/index.html other than that, i tried so many alternatives but i still end up with err_connection_refused and in the debug window it says website not available.