breautek commented on issue #1003:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/1003#issuecomment-1550495736

   The InAppBrowser doesn't support schemes (and it never has) and the 
primarily reason for that is because the InAppBrowser is built to behave as 
closely to a regular browser so that it can load untrusted third-party content.
   
   As a workaround however I'd try using the [file plugin 
constants](https://github.com/apache/cordova-plugin-file#ios-file-system-layout)
 to discover/construct a `file://` path to your local assets. If a `file://` 
path worked before, it should work if you supply an explicit `file://` path 
regardless if the cordova webview uses schemes. You'll need to install the 
`cordova-plugin-file` to use the constants.
   
   `app://localhost/` is generally points to your `www` folder, so assuming 
that you have `www/assets/localfile.txt` then, an example may look something 
like:
   
   ```js
   cordova.InAppBrowser.open(cordova.file.applicationDirectory + 
"www/assets/localfile.txt", "_blank");
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to