From 49eb432e445412af81788950221116920850f695 Mon Sep 17 00:00:00 2001 From: K K Date: Fri, 30 Aug 2019 17:20:31 +0530 Subject: [PATCH 1/2] 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 --- packages/url_launcher/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/url_launcher/README.md b/packages/url_launcher/README.md index 4b65cfaf854d..4673c785fa79 100644 --- a/packages/url_launcher/README.md +++ b/packages/url_launcher/README.md @@ -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.*** + | Scheme | Action | |---|---| | `http:` , `https:`, e.g. `http://flutter.dev` | Open URL in the default browser | From e0454e03bc61c1ab923728c952f6bc5ba5f15b56 Mon Sep 17 00:00:00 2001 From: Michael Klimushyn Date: Mon, 30 Sep 2019 15:59:47 -0700 Subject: [PATCH 2/2] Suggested review changes --- packages/url_launcher/CHANGELOG.md | 4 ++++ packages/url_launcher/README.md | 6 ++++-- packages/url_launcher/pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/url_launcher/CHANGELOG.md b/packages/url_launcher/CHANGELOG.md index 22e75263c7e7..cac0572937ab 100644 --- a/packages/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.1.5 + +* Update README. + ## 5.1.4 * Update and migrate iOS example project. diff --git a/packages/url_launcher/README.md b/packages/url_launcher/README.md index 4673c785fa79..f935daa27d9b 100644 --- a/packages/url_launcher/README.md +++ b/packages/url_launcher/README.md @@ -44,8 +44,6 @@ 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.*** - | Scheme | Action | |---|---| | `http:` , `https:`, e.g. `http://flutter.dev` | Open URL in the default browser | @@ -53,6 +51,10 @@ Common schemes supported by both iOS and Android: | `tel:`, e.g. `tel:+1 555 010 999` | Make a phone call to using the default phone app | | `sms:`, e.g. `sms:5550101234` | Send an SMS message to using the default messaging app | +URL schemes will fail if there are no apps installed on the device that can +support them. For example, iOS simulators don't have a default email or phone +apps installed and can't open `tel:` or `mailto:` links. + More details can be found here for [iOS](https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html) and [Android](https://developer.android.com/guide/components/intents-common.html) ## Handling missing URL receivers diff --git a/packages/url_launcher/pubspec.yaml b/packages/url_launcher/pubspec.yaml index c887649292e9..cc00ebc396db 100644 --- a/packages/url_launcher/pubspec.yaml +++ b/packages/url_launcher/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for launching a URL on Android and iOS. Supports web, phone, SMS, and email schemes. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher -version: 5.1.4 +version: 5.1.5 flutter: plugin: