Commit deffc52e authored by 汪林玲's avatar 汪林玲

修复Scheme

parent 26fe180f
...@@ -8,4 +8,6 @@ ...@@ -8,4 +8,6 @@
+ (_Nullable instancetype)sharedInstance; + (_Nullable instancetype)sharedInstance;
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nonnull))restorationHandler;
@end @end
\ No newline at end of file
...@@ -106,7 +106,7 @@ static id _instance; ...@@ -106,7 +106,7 @@ static id _instance;
return NO; return NO;
} }
} }
return YES; return NO;
} }
- (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity API_AVAILABLE(ios(13.0)){ - (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity API_AVAILABLE(ios(13.0)){
...@@ -119,13 +119,13 @@ static id _instance; ...@@ -119,13 +119,13 @@ static id _instance;
#pragma mark - handleOpenURL #pragma mark - handleOpenURL
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{ - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{
[self foundSchemeURL:url]; [self foundSchemeURL:url];
return YES; return NO;
} }
#pragma mark - openURL #pragma mark - openURL
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{ - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{
[self foundSchemeURL:url]; [self foundSchemeURL:url];
return YES; return NO;
} }
- (FlutterError *)onListenWithArguments:(id)arguments eventSink:(FlutterEventSink)events{ - (FlutterError *)onListenWithArguments:(id)arguments eventSink:(FlutterEventSink)events{
...@@ -137,4 +137,6 @@ static id _instance; ...@@ -137,4 +137,6 @@ static id _instance;
_eventSink = nil; _eventSink = nil;
return nil; return nil;
} }
@end @end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment