android-browser-helper icon indicating copy to clipboard operation
android-browser-helper copied to clipboard

TWA Address bar appears for a second at first launch

Open SaraTalaat91 opened this issue 1 year ago • 5 comments

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:

  1. Clear Chrome cache
  2. Install the app
  3. Launch the app and then launch the TWA
  4. 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]

SaraTalaat91 avatar Feb 21 '23 09:02 SaraTalaat91

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 avatar Mar 26 '23 12:03 AslamThachapalli

Hey, can you please confirm if that's a regression? and if so can you state the version when it started?

SayedElabady avatar Mar 31 '23 11:03 SayedElabady

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

SaraTalaat91 avatar Jun 15 '23 12:06 SaraTalaat91

We're having this as well.

monstermac77 avatar Jun 21 '23 18:06 monstermac77

this is also hapenning to me when using launchTrustedWebActivity()

TrustedWebActivityIntentBuilder twaBuilder = new TrustedWebActivityIntentBuilder(getLaunchingUrl());
TrustedWebActivityIntent intent = twaBuilder.build(mSession);
intent.launchTrustedWebActivity(LauncherActivity.this);;

kobars avatar Oct 18 '23 12:10 kobars