cordova-plugin-crypto-file icon indicating copy to clipboard operation
cordova-plugin-crypto-file copied to clipboard

BUG: err_connection_refused https://localhost/index.html

Open odaialsughier opened this issue 3 years ago • 4 comments

Describe the bug I am trying to add cordova-plugin-crypto-file 1.4.0 to my ionic project with android 10 I have followed the guide by changing WebResourceResponse in platforms/android/app/src/main/java/com/ionicframework/cordova/webview/IonicWebViewEngine.java file and adding the tag of the port in the confix.xml file also but i got error

"err_connection_refused https://localhost/index.html"

To Reproduce Steps to reproduce the behavior:

  1. Build the project with cordova-plugin-crypto-file and get the apk file
  2. Try to run the apk file on any android device and you will get the error "err_connection_refused https://localhost/index.html"

Expected behavior The apk file will work without coonectin errors

Additional context I thought this might be because the default port is 8080 so i tried to modify file after_propare,js to be child.attrib.src = 'https://localhost/' + child.attrib.src; but i still have the same problem

your help is much appreciated

thanks..

odaialsughier avatar Dec 11 '21 09:12 odaialsughier

I am facing the same issue :( Please help.

bmunjal avatar Jan 15 '22 21:01 bmunjal

Make these changes to the code

https://github.com/weareu/cordova-plugin-crypt-file/commit/96cdc4b8069c15cacfea824138a25ef906c51b5d

maxtroia avatar Apr 14 '22 21:04 maxtroia

Hi @maxtroia this commit you mentioned was related to the base repo (cordova-plugin-crypt-file) not this repo (cordova-plugin-crypto-file), however I tried to add that file and modify the other file as the commit but with no luck

odaialsughier avatar Jul 02 '22 13:07 odaialsughier

I am also facing the same issue. did any one solve it? @maxtroia @odaialsughier

skmarwal avatar Aug 06 '23 06:08 skmarwal