android-browser-helper
android-browser-helper copied to clipboard
TWA Address bar appears for a second at first launch
Hi, we are integrating TWA into our app and we've done all required steps, Digital Asset is in place and everything is configured just fine. Except that for the first launch, beside the "running in chrome" toast, we can see a blank screen with the "address bar" showing for a second or two before page loaded and then disappears
To Reproduce Steps to reproduce the behavior:
- Clear Chrome cache
- Install the app
- Launch the app and then launch the TWA
- See the address bar there for a second then disappears
Expected behavior TWA should launch everytime without showing any address bar as this gives the impression that a web URL is launched and not completely a native experience.
We are using TwaLauncher to launch TWA
val launcher = TwaLauncher(this)
launcher.launch(TrustedWebActivityIntentBuilder(uri), QualityEnforcer(), null, null, WEBVIEW_FALLBACK_STRATEGY)
Smartphone:
- Device: [Samsung A21s]
- OS: [Android 12]
- Browsers Installed [Chrome]
- Browser Versions [110.0.5481.6.5]
- android-browser-helper library version [2.4.0]
Is this issue resolved for you? I am also facing this same issue. But tried to cover it up with increasing the fade out duration of splash screen, like setting it to 2000 or something. This works but doesn't seem good in ui sence. Is there any better way?
Hey, can you please confirm if that's a regression? and if so can you state the version when it started?
Is this issue resolved for you? I am also facing this same issue. But tried to cover it up with increasing the fade out duration of splash screen, like setting it to 2000 or something. This works but doesn't seem good in ui sence. Is there any better way?
@AslamThachapalli No, issue is still there
Hey, can you please confirm if that's a regression? and if so can you state the version when it started?
@SayedElabady it's reproduced for all versions
We're having this as well.
this is also hapenning to me when using launchTrustedWebActivity()
TrustedWebActivityIntentBuilder twaBuilder = new TrustedWebActivityIntentBuilder(getLaunchingUrl());
TrustedWebActivityIntent intent = twaBuilder.build(mSession);
intent.launchTrustedWebActivity(LauncherActivity.this);;