skiptools / skiptools/skip-web
Android: WebView not compatible with Bundle.module.url's
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 9
- Forks
- 9
- Avg merge
- 6h 47m
- Merged PRs (30d)
- 1
Description
WebView(url:) does not seem to work out of the box with local resource urls from Bundle.module.url(forResource:withExtension:) on Android.
Bundle.module.url delivers urls like asset:/myproject/module/Resources/mylocalpage.html;
When initialised with such an URL, the WebView complains about the unknown scheme.
When using urls like URL(string: "file:///android_asset/myproject/module/Resources/mylocalpage.html") the page is shown.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the WebView(url:) entry point and trace how Bundle.module.url(forResource:withExtension:) produces asset: URLs on Android. Reproduce the issue with a local HTML resource, then verify that the WebView displays it without requiring callers to construct a file:///android_asset URL manually.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100