Skip to content

WebView accesses the internet without Android network permissions (edit: false alarm?) #2456

Discussion options

You must be logged in to vote

Glad to hear you worked this out; however, regarding the local pages - I suspect you'll find that the WebView isn't differentiating between localhost and any other address with respect to permissions. You're accessing localhost "over the network" because you're using network protocols to do so; the "hardware reality" of the situation doesn't really enter into consideration.

And, as you've noted, set_content will let you show a single page, but not navigate between pages. This is essentially because there's no way for a page to know that the URL is "on the same server". You might be able to pull something together by catching the navigation request and manually setting the page to the new …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Juan-de-Salgado
Comment options

Answer selected by Juan-de-Salgado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants