Skip to content

Commit

Permalink
🗑️ 优化过时的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
BytesZero committed Nov 27, 2024
1 parent 022bdec commit 55c4ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/AppInstallerPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
} else {
NSString* iTunesLink = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/xy/app/foo/id%@", appId];
//打开 App Store
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink] options:@{} completionHandler:nil];
result(nil);
}
}
Expand Down

0 comments on commit 55c4ad3

Please sign in to comment.