Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added a note
The action won't work on the simulator works on physical iOS device which was not mentioned here so it was added
  • Loading branch information
kalkotekedar authored Aug 30, 2019
commit 49eb432e445412af81788950221116920850f695
2 changes: 2 additions & 0 deletions packages/url_launcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ URL schemes depend on the underlying platform and installed apps.

Common schemes supported by both iOS and Android:

***Note: These action won't work on simulator you need physical device to test for iOS.***
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like a subset of this functionality is missing:

  • No email app, so the mailto: link doesn't work.
  • No phone app, so tel: doesn't work.
  • There is an SMS app, so sms: works.
  • There is a browser, so http: works.

How about this warning is placed underneath the table and worded a little more generally to point out that only actions supported by apps on the device can be taken? Something like:

URL schemes will fail if there are no apps installed on the device that can support them. For example, iOS simulators do not have a default email or phone app installed and so do not support tel: or mailto: links.


| Scheme | Action |
|---|---|
| `http:<URL>` , `https:<URL>`, e.g. `http://flutter.dev` | Open URL in the default browser |
Expand Down