fluttercommunity / fluttercommunity/flutter_webview_plugin

How to render a local HTML file?

Open
#165 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

I have an HTML file in my Download folder: /mnt/sdcard/Download/file.html
Brave browser renders this HTML file if I use this URL:
`file://mnt/sdcard/Download/file.html`

Bur your plugin flutter_webview_plugin cannot render it, I get the error ERR_ACCESS_DENIED.

1. How to render a local HTML file with your plugin (if it is possible) ?
2. If not possible, which other WebView plugin can render a local HTML file ?
3. What is the built-in Flutter WebView class ?

Does this error message mean: my flutter app is not allowed to access my Download folder, because my device is not rooted?

Thanks in advance and regards

Device: GALAXY S8+ SM-G955F. Android 8.0. Not Rooted
Flutter beta v0.5.1. Dart 2.0.0-dev.58.0. Windows 10

![screenshot_20180819-173014](https://user-images.githubusercontent.com/5325053/44310477-47a39880-a3d7-11e8-8252-31e9bde5b4fb.JPG)

Contributor guide

No contributing guide indexed for this repository

Research direction

The report names no repository file, test, or entry point. Start by reproducing the file:// URL on Android 8 and tracing the plugin's Android WebView handling; done means establishing whether local files are supported and capturing the resulting behavior in an appropriate test or documentation update.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.