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

wechat_kit 5.0.3 微信授权不成功 #135

Open
pen110 opened this issue Aug 21, 2023 · 1 comment
Open

wechat_kit 5.0.3 微信授权不成功 #135

pen110 opened this issue Aug 21, 2023 · 1 comment

Comments

@pen110
Copy link

pen110 commented Aug 21, 2023

late final StreamSubscription _respSubs;

void onInit() async {
super.onInit();
_respSubs = WechatKitPlatform.instance.respStream().listen(_listenResp);
}
void _listenResp(WechatResp resp) {
print('object--111--');
if (resp is WechatAuthResp) {
print('object-2222---');
final String content = 'auth: ${resp.errorCode} ${resp.errorMsg}';
print('登录----$content');
}
}

调用bindWechat(){
WechatKitPlatform.instance.auth(
scope: [WechatScope.kSNSApiUserInfo],
state: 'auth',
);
}
但是这个监听没有被调用respStream().listen

@pen110
Copy link
Author

pen110 commented Aug 21, 2023

iOS授权不行但是分享可以,安卓都ok的,

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

1 participant