diff --git a/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h b/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h index 056554b5f990d8641bc81d0d38fae8a58cb32535..63ae8be0cd253ea52fb94f6ad915986f66a4fcdc 100644 --- a/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h +++ b/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h @@ -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*)options; + handleOpenURL:(NSURL*)url; @end @protocol FlutterPluginRegistrar diff --git a/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm b/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm index cb72aed21a914ed56aac7de9796f718cc4eaa3b0..cb237df4aacd4c84c345979447a16d614955151f 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm @@ -156,11 +156,10 @@ } - (BOOL)application:(UIApplication*)application - openURL:(NSURL*)url - options:(NSDictionary*)options { + handleOpenURL:(NSURL*)url { for (id plugin in _pluginDelegates) { if ([plugin respondsToSelector:_cmd]) { - if ([plugin application:application openURL:url options:options]) { + if ([plugin application:application handleOpenURL:url]) { return YES; } }