skiptools / skiptools/skip-web

Android: WebView not compatible with Bundle.module.url's

Open
#45 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.