Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter 渠道包 拉起微信验证 第一次获取不到code,闪屏之后App 重启第二次就可以获取到了 #627

Open
wubaibin opened this issue Jul 29, 2024 · 4 comments

Comments

@wubaibin
Copy link

Describe the bug
flutter 渠道包 拉起微信验证 第一次获取不到code,闪屏之后App 重启第二次就可以获取到了

To Reproduce
只有Android 有这个问题,iOS是没有的

Which version of Fluwx do you use?
fluwx: ^4.5.5

Which device do you run on
OPPO Reno4 SE Android 11

Which Flutter do you use?

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.5 23F79 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.91.1)
[✓] Connected device (3 available)

@tankpanv
Copy link

我也同样遇到这个问题了,你解决了吗。第一次授权返回,监听不到返回code,直接跳转到首页。第二次点击授权,能监听返回code,但是会闪烁一下

@wubaibin
Copy link
Author

我写了个缓存,第二次进入的时候我立即重新拉起微信登录

@tankpanv
Copy link

我写了个缓存,第二次进入的时候我立即重新拉起微信登录

你是具体怎么实现的呀,第一次进入的时候不返回code这个怎么办呀。判断第一次进入的话重复拉起两次吗?

@wubaibin
Copy link
Author

第一次进入的时候,点击微信登录我写一个缓存标记一下是微信登录。然后手机会重新弄一个窗口,我在第二个窗口重新拉一下微信登录就可以获取到code。获取到code之后将缓存删掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants