WebView fallback
See original GitHub issueInvestigate providing a WebView fallback when the device does not have a TWA provider.
- Have a look at current usage.
- Consider APK size increase.
- Consider WebView Web API support.
Requirements for a WebView fallback:
- Opens
startUrl
in full-screen - Supports multiple Origins
- Handles external navigations using CustomTabs
- New Intents should re-use an existing Activity / WebView
- Handle orientation changes so that page state isn’t lost
- Handle onPause/onResume
- Handle onBackPressed
- Handle onSaveInstanceState
- Enable domstorage, database, etc.
- Splash screen support
- Immersive mode
- Sets
android-app://<package-id>
referrer.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:24 (10 by maintainers)
Top Results From Across the Web
How to use the fallback mode of WebViewGold? How to ...
Having a local HTML folder, you can use the fallback mode of WebViewGold. This mode uses an HTML folder if the user is...
Read more >How to set fallback of Chrome Custom tab to WebView?
I want to set Webview as fallback of chrome custom tab. If user don't have chrome installed on their mobile I want Webview...
Read more >WebView docs (go/webview-docs) - WebView Providers
If you uninstall (or disable) the selected WebView provider, the WebView Update Service will fallback to a different package based on an ordered...
Read more >iOS: What is 3D WebView's fallback video implementation?
When Native 2D Mode is disabled, 3D WebView works by rendering web content from the browser engine to a texture that is shown...
Read more >WebRtc/H264 in WebView - Google Groups
264 decoder fallback. Decoding of this stream will be broken. While the Android Chrome browser from the play store works fine. Are you ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve just added support for earlier APIs on the last PR.
Regarding Fire TV / Android TV, my guess is that developers should probably use store targeting to deploy a different APK that uses the WebView in those platforms. I don’t know about Fire TV, but Android TV doesn’t come with a browser. And Chrome can’t be installed from the store.
I’ll check out the best approach for the others.
I think an approach we can take here is to add a demo app that contains a WebView fallback. We can start with a naive implementation that will give us more understanding on what we will need to do to have solid implementation in the library and, once we are happy we can move the implementation there.
@PEConn, WDYT? @b1tr0t, FYI