Kavi Harjani
Kavi Harjani

Reputation: 679

Url launcher does not open with appbar

what i want is to get the top bar when I launch URL inappwebview, where it shows Done Mobile.twitter.com aA and refresh icon

enter image description here

So I've tried

await launchUrl(
Uri.parse(url),
mode: LaunchMode.inAppWebView,
);

as well as downgraded url_launcher and tried this

launch(url,
    forceWebView: true, forceSafariVC: true, enableJavaScript: true);

None seem to work,

enter image description here

I keep getting the website without the appbar with Done, refresh on top of it

Upvotes: 2

Views: 842

Answers (1)

velval
velval

Reputation: 3312

I encountered the same problem when upgrading from using the deprecated launch(url) method to launchUrl(uri).

All it needs is to pass the LaunchMode as below.

launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication )

Upvotes: 3

Related Questions