Click here to Skip to main content
14,666,491 members
Rate this:
Please Sign up or sign in to vote.
I am using launch_url plugin to launch url, but its launching it on default Browser like Safari in IOS case, I wanted to know Is there any way to launch it on Google Chrome Only ?

What I have tried:

if (await canLaunch(url)) {
    await launch(url, forceSafariVC: false);
} else {
    throw 'Could not launch $url';
}
Posted
Updated 3-Jul-20 4:53am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Not using that package, no. It's a bad idea anyway, it will annoy users if you try and override their preferences.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100