通过scheme打开webview
parent
59c880f4de
commit
4ef460bbed
|
@ -99,6 +99,12 @@ static MopPlugin *_instance;
|
|||
|
||||
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *)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];
|
||||
|
|
Loading…
Reference in New Issue