apache / apache/cordova-plugin-inappbrowser
InAppBrowser does not work with "system_" web browser on Android over 6.3 only with local files.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
This code works for my app on older Android devices, but don't work on any over 6.3, but only with local filles. For my online files it works fine.
This is what I'm using: cordova.InAppBrowser.open(cordova.file.externalRootDirectory+FileName, "_system")
I get no error.
If I do this, it works fine: cordova.InAppBrowser.open("https://github.com/apache/cordova-plugin-inappbrowser/blob/master/tests/resources/local.pdf", "_system")
I could use "_blank" to open images, but not PDFs on Android.
What am I doing wrong?
Contributor guide
Research direction
Start by reproducing cordova.InAppBrowser.open with cordova.file.externalRootDirectory+FileName and the "_system" target on Android versions above 6.3, comparing it with the supplied HTTPS PDF case. Check the plugin's Android handling of local files and PDF opening; done means local PDFs open through "_system" or the issue has a documented limitation and workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100