'Non-Embedded Webpage in Flutter

I have an app that uses url_launcher plugin. The Apple Appeal board said "The App opens the url in a web view inside the app, instead of linking it out of the app to open the mobile browser."

Do you know how to launch a url in Flutter that is not embedded in the app?



Solution 1:[1]

https://github.com/flutter/flutter/issues/55121

 _launchURL([String _url]) async {
   if (await canLaunch(_url)) {
      await launch(_url,forceWebView: false,forceSafariVC: false);
   } else {
     throw 'Could not launch $_url';
   }
 }

Setting the flag - forceSafariVC to false launches the url outside of the app

Solution 2:[2]

It is weird, the default value is FALSE, but you MUST set the forceSafariVC variable explicitly to FALSE, if you want to open the url in Safari or some browser, instead of a webview.

It's a bug!

For more details, check this link: url_launcher forceSafariVC set to true does not work in iOS

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Carlton Foster
Solution 2 TĂșlio Calazans