Skip to content

Commit

Permalink
Change Apple App Store link
Browse files Browse the repository at this point in the history
- LSApplicationQueriesSchemes - itms isn’t needed
  • Loading branch information
mono0926 committed Jun 13, 2019
1 parent 2c8a9bf commit e6ca513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
<key>LSApplicationQueriesSchemes</key>
<array>
<string>itms</string>
</array>
```

## Usage
To use this plugin, add `launch_review` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).

Expand Down
4 changes: 2 additions & 2 deletions ios/Classes/LaunchReviewPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit e6ca513

Please sign in to comment.