We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c1d41 commit af0f503Copy full SHA for af0f503
ios/RCTWeChat.m
@@ -113,7 +113,9 @@ + (BOOL)requiresMainQueueSetup {
113
SendAuthReq* req = [[SendAuthReq alloc] init];
114
req.scope = scope;
115
req.state = state;
116
- BOOL success = [WXApi sendReq:req];
+ // BOOL success = [WXApi sendReq:req];
117
+ UIViewController *rootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
118
+ BOOL success = [WXApi sendAuthReq:req viewController:rootViewController delegate:self];
119
callback(@[success ? [NSNull null] : INVOKE_FAILED]);
120
}
121
0 commit comments