Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900