From e6ca51344d5a5ad1871da785b70b11dd00b189e2 Mon Sep 17 00:00:00 2001 From: Masayuki Ono Date: Thu, 13 Jun 2019 16:39:30 +0900 Subject: [PATCH 1/2] Change Apple App Store link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - LSApplicationQueriesSchemes - itms isn’t needed --- README.md | 8 -------- ios/Classes/LaunchReviewPlugin.m | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 75679da..58dd68b 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,6 @@ A Flutter plugin to assist in leaving user reviews/ratings in Google Play Store ### iOS Thanks to [Edouard Marquez](https://github.com/g123k) for adding the iOS functionality. -For iOS 9 and above, your `Info.plist` file __MUST__ have the following: -``` -LSApplicationQueriesSchemes - - itms - -``` - ## Usage To use this plugin, add `launch_review` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). diff --git a/ios/Classes/LaunchReviewPlugin.m b/ios/Classes/LaunchReviewPlugin.m index 4624669..71d25ef 100644 --- a/ios/Classes/LaunchReviewPlugin.m +++ b/ios/Classes/LaunchReviewPlugin.m @@ -24,9 +24,9 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { } else { NSString *iTunesLink; if ([call.arguments[@"write_review"] boolValue]) { - iTunesLink = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@?action=write-review", appId]; + iTunesLink = [NSString stringWithFormat:@"https://itunes.apple.com/app/id%@?action=write-review", appId]; } else { - iTunesLink = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", appId]; + iTunesLink = [NSString stringWithFormat:@"https://itunes.apple.com/app/id%@", appId]; } NSURL* itunesURL = [NSURL URLWithString:iTunesLink]; From 19b2e257cb3d805ebc811d11c0fd85dc2e6322c0 Mon Sep 17 00:00:00 2001 From: Masayuki Ono Date: Sat, 15 Jun 2019 16:30:27 +0900 Subject: [PATCH 2/2] Update to new url - https://developer.apple.com/news/?id=06142019a --- ios/Classes/LaunchReviewPlugin.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Classes/LaunchReviewPlugin.m b/ios/Classes/LaunchReviewPlugin.m index 71d25ef..a8f7fc0 100644 --- a/ios/Classes/LaunchReviewPlugin.m +++ b/ios/Classes/LaunchReviewPlugin.m @@ -24,9 +24,9 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { } else { NSString *iTunesLink; if ([call.arguments[@"write_review"] boolValue]) { - iTunesLink = [NSString stringWithFormat:@"https://itunes.apple.com/app/id%@?action=write-review", appId]; + iTunesLink = [NSString stringWithFormat:@"https://apps.apple.com/app/id%@?action=write-review", appId]; } else { - iTunesLink = [NSString stringWithFormat:@"https://itunes.apple.com/app/id%@", appId]; + iTunesLink = [NSString stringWithFormat:@"https://apps.apple.com/app/id%@", appId]; } NSURL* itunesURL = [NSURL URLWithString:iTunesLink];