question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate 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:open
  • Created 4 years ago
  • Reactions:5
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
andrebancommented, Mar 9, 2020

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.

2reactions
andrebancommented, Oct 18, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found