Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flutter url_launcher canLaunch() method returning false on some (valid) web schemes #51471

Closed
flutter/plugins
#5310
@vazkir

Description

@vazkir

The problem

Some valid url schemes seem to work (so the launch() method doesn't fail), even-though the url_launcher's canLaunch() method on flutter web returns false.

These are some examples:

  • canLaunch("whatsapp://send?text=testing");
  • canLaunch("twitter://post?message=testing");

Information

I have tested this on:

  • My Safari browser on my Iphone XR
  • Google chrome on my macbook
  • Samsung J3's default browser

A solution?

Could this be fixed? Or is this not possible since you're trying to open apps from a web environment?

Thanks in advance for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectp: url_launcherPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions