diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index d927950..b7cbafc 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -35,6 +35,7 @@ static MopPlugin *_instance; methodChannelWithName:@"mop" binaryMessenger:[registrar messenger]]; _instance = [[MopPlugin alloc] init]; + [registrar addApplicationDelegate:_instance]; [registrar addMethodCallDelegate:_instance channel:channel]; _instance.methodChannel = channel; @@ -85,4 +86,8 @@ static MopPlugin *_instance; } } +- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { + return [[FATClient sharedClient] handleOpenURL:url]; +} + @end diff --git a/ios/Classes/Utils/MOPBaseApi.h b/ios/Classes/Utils/MOPBaseApi.h index 0c6ff49..7972ddd 100644 --- a/ios/Classes/Utils/MOPBaseApi.h +++ b/ios/Classes/Utils/MOPBaseApi.h @@ -6,6 +6,7 @@ // #import +#import NS_ASSUME_NONNULL_BEGIN