解决冷启动时不能跳转小程序的问题
parent
1fca68e124
commit
8f21e46192
|
@ -88,6 +88,11 @@ static MopPlugin *_instance;
|
||||||
|
|
||||||
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *)options
|
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *)options
|
||||||
{
|
{
|
||||||
|
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];
|
||||||
|
});
|
||||||
|
}
|
||||||
return [[FATClient sharedClient] handleOpenURL:url];
|
return [[FATClient sharedClient] handleOpenURL:url];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue