-
Notifications
You must be signed in to change notification settings - Fork 395
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
Cannot access local files with inappbrowser on Android #178
Comments
same problem. ionic (Ionic CLI) : 4.5.0 (C:\Users\username\AppData\Roaming\npm\node_modules\ionic) Cordova: cordova (Cordova CLI) : 8.1.2 ([email protected]) System: Android SDK Tools : 26.1.1 (C:\Users\username\AppData\Local\Android\sdk) |
You'll need cordova-plugin-file to get the file system path, the localhost paths are only accesible in the Ionic WebView, but not in InAppBrowser |
That works. But we use localStorage to send back some data from InAppBrowser. |
Why do you open them in InAppBrowser instead of opening them inside the own webview? InAppBrowser was created to open external websites. Anyway, next release of InAppBrowser will include postMessage, so you'll be able to communicate without localStorage "hacks" apache/cordova-plugin-inappbrowser#362. |
we also use other UI frameworks instead of ionic, so to avoid conflicts we use IAB. |
I have a html file in my www folder called test.html.
I am trying to use the inappbrowser to open this file but I get this error on Android:
err::ERR_CONNECTION_REFUSED
IOS opens the file as expected.
Screenshot:
What I am trying to do is host a mini static website in the www folder so I can open this from my Ionic app with the inappbrowser.
Is it possible to do this?
The text was updated successfully, but these errors were encountered: