Skip to content

[url_launcher] Opening up a Play Store link via Google Play brings up a dialog box asking to Install a Web Browser. #102769

@patrick-enzo

Description

@patrick-enzo

Steps to Reproduce

  1. Execute flutter run on the code sample
  2. Tap on a link that leads to the play store app with the correct path.

Expected results: The app corresponding to the play store link displays.

Actual results: A dialog appears saying "To view this content, install and set up a web browsing app".

Code sample
return ul.launchUrl(
  Uri(
    scheme: scheme,  // <-- https
    host: host,   // <-- play.google.com
    path: path, // <--- store/apps/details?id=com.abc.yxz
  ),
  mode:ul.LaunchMode.externalApplication,
);

Before upgrading to version 6.1.0, this problem didn't exist.
I've also tried LaunchMode.externalNonBrowserApplication which lead to the same result. LaunchMode.inAppWebView also doesn't work because the path can't be found because it's private. I've tried manually inputting the link into the chrome web page and it works properly so I'm sure that the path I'm passing in works. I do have Chrome installed and it's set as my default on my device. I'm on Flutter version 2.10.3.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions