OpenFlutter / OpenFlutter/fluwx
iOS FluwxPlugin.m 下的 UIViewController *vc = UIApplication.sharedApplication.keyWindow.rootViewController; 在UIScene 模式会有兼容问题
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 3.3k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
- (void)handleAuthByPhoneLogin:(FlutterMethodCall *)call result:(FlutterResult)result {
UIViewController *vc = UIApplication.sharedApplication.keyWindow.rootViewController;
SendAuthReq *authReq = [[SendAuthReq alloc] init];
authReq.scope = call.arguments[@"scope"];
authReq.state = (call.arguments[@"state"] == (id) [NSNull null]) ? nil : call.arguments[@"state"];
[WXApi sendAuthReq:authReq viewController:vc delegate:self completion:^(BOOL success) {
result(@(success));
}];
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in FluwxPlugin.m at handleAuthByPhoneLogin: and inspect how the current root view controller is obtained. Check the iOS UIScene lifecycle and verify the phone-login authorization flow in a scene-based app; done means authorization receives a valid view controller without the reported compatibility problem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter, objective-c
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100