add handle openURL的处理

master
wanghualei 2021-01-08 15:03:14 +08:00
parent daba1a5c43
commit 545788e994
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ static MopPlugin *_instance;
methodChannelWithName:@"mop" methodChannelWithName:@"mop"
binaryMessenger:[registrar messenger]]; binaryMessenger:[registrar messenger]];
_instance = [[MopPlugin alloc] init]; _instance = [[MopPlugin alloc] init];
[registrar addApplicationDelegate:_instance];
[registrar addMethodCallDelegate:_instance channel:channel]; [registrar addMethodCallDelegate:_instance channel:channel];
_instance.methodChannel = channel; _instance.methodChannel = channel;
@ -85,4 +86,8 @@ static MopPlugin *_instance;
} }
} }
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *)options {
return [[FATClient sharedClient] handleOpenURL:url];
}
@end @end

View File

@ -6,6 +6,7 @@
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <FinApplet/FinApplet.h>
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN