-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#5143Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listbrowser: safari-macosonly manifests in Safari on macOSonly manifests in Safari on macOSd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.11Found to occur in 3.11Found to occur in 3.11has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Hello,
I try to open an external url in a new tab with flutter web and url_launcher.
The code:
(await canLaunch(_url)) ? await launch(_url) : Get.snackbar("Error", 'Could not launch $_url');
When using this code, this doesn't work and there is no error message. However I guess it was normally the role of canLaunch().
In fact, I noticed the issue is related to popup. When I set the browser to allow popup a message is displayed asking to allow or block.

As a majority of browsers have popups disabled by default how can I avoid this behavior? Is there a workaround?
At least can we detect popup are disabled by the browser?
Thanks.
Aravinthan-Subramanian, fatememir, amorenew and rignaneseleo
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listbrowser: safari-macosonly manifests in Safari on macOSonly manifests in Safari on macOSd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.11Found to occur in 3.11Found to occur in 3.11has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Type
Projects
Status
Done