From 4ef460bbedfda1bf85de24bc37345ad740590754 Mon Sep 17 00:00:00 2001 From: hujianhui Date: Mon, 10 Jan 2022 11:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87scheme=E6=89=93=E5=BC=80webvi?= =?UTF-8?q?ew?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/MopPlugin.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 26d2a08..12b0d84 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -99,6 +99,12 @@ static MopPlugin *_instance; - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { + FlutterMethodChannel *channel = [[MopPlugin instance] shareMethodChannel]; + [channel invokeMethod:@"shareApi:openURL" arguments:@{@"url":url.absoluteString} result:^(id _Nullable result) { + + }]; +// + if (![FATClient sharedClient].inited) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [[FATClient sharedClient] handleOpenURL:url];