Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
odaialsughier opened this issue Dec 11, 2021 · 4 comments
Open

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

odaialsughier opened this issue Dec 11, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@odaialsughier
Copy link

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 odaialsughier added the bug Something isn't working label Dec 11, 2021
@bmunjal
Copy link

bmunjal commented Jan 15, 2022

I am facing the same issue :( Please help.

@maxtroia
Copy link

Make these changes to the code

weareu/cordova-plugin-crypt-file@96cdc4b

@odaialsughier
Copy link
Author

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

@skmarwal
Copy link

skmarwal commented Aug 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants