diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 614dbd7..85b3469 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -40,13 +40,9 @@ NSLog(@"getUserInfoWithAppletInfo"); __block NSDictionary *userInfo; FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; - dispatch_group_t group = dispatch_group_create(); - dispatch_group_enter(group); [channel invokeMethod:@"extensionApi:getUserInfo" arguments:nil result:^(id _Nullable result) { - userInfo = result; - dispatch_group_leave(group); + userInfo = result; }]; - dispatch_group_wait(group, DISPATCH_TIME_FOREVER); return userInfo; }