Skip to content

Commit

Permalink
Use older openURL signature (flutter#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
mravn-google authored May 8, 2017
1 parent 5e6bd48 commit 432fc1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
didReceiveRemoteNotification:(NSDictionary*)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
- (BOOL)application:(UIApplication*)application
openURL:(NSURL*)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey, id>*)options;
handleOpenURL:(NSURL*)url;
@end

@protocol FlutterPluginRegistrar<NSObject>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,10 @@ - (void)application:(UIApplication*)application
}

- (BOOL)application:(UIApplication*)application
openURL:(NSURL*)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey, id>*)options {
handleOpenURL:(NSURL*)url {
for (id<FlutterPlugin> plugin in _pluginDelegates) {
if ([plugin respondsToSelector:_cmd]) {
if ([plugin application:application openURL:url options:options]) {
if ([plugin application:application handleOpenURL:url]) {
return YES;
}
}
Expand Down

0 comments on commit 432fc1d

Please sign in to comment.