Skip to content

[url_launcher] for web should support the tel and sms scheme in PWA #58553

@jing-pei

Description

@jing-pei

Use case

The current plugin supports http,https,mailto

const _mailtoScheme = 'mailto';

static final _supportedSchemes = {'http', 'https', _mailtoScheme};

The safari browser in the iPhone can be executed normally using the following code

  _launchURL() async {
    var url = 'tel:+1-408-555-5555';
    //if (await canLaunch(url)) {
      await launch(url);
    //} else {
      //throw 'Could not launch $url';
    //}
  }

Proposal

Add support for the tel and sms scheme links in url_launcher_web, For use in pwa.

Metadata

Metadata

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttergood first issueRelatively approachable for first-time contributorsp: url_launcherPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions