cordova-plugin-crypto-file
cordova-plugin-crypto-file copied to clipboard
BUG: err_connection_refused https://localhost/index.html
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:
- Build the project with cordova-plugin-crypto-file and get the apk file
- 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..
I am facing the same issue :( Please help.
Make these changes to the code
https://github.com/weareu/cordova-plugin-crypt-file/commit/96cdc4b8069c15cacfea824138a25ef906c51b5d
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
I am also facing the same issue. did any one solve it? @maxtroia @odaialsughier