We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
final Fluwx fluwx = Fluwx(); late Function(WeChatResponse) responseListener;
@OverRide void dispose() { // TODO: implement dispose super.dispose(); fluwx.removeSubscriber(responseListener); }
@OverRide void onInit() { // TODO: implement onReady super.onInit();
responseListener = (response) { debugPrint('oninit responseListener response ${response.isSuccessful}'); if (response is WeChatPaymentResponse) { debugPrint('oninit responseListener ${response.isSuccessful}'); if (response.isSuccessful) { fetchUserInfo(); } else { ShowToast(response.errStr?? response.toString()); } } else { ShowToast(response.errStr?? response.toString()); } }; fluwx.addSubscriber(responseListener);
}
The text was updated successfully, but these errors were encountered:
查看yaml中的universal_link和registerApi方法中的universalLink是否和微信申请时填写的一致。我刚开始是universalLink填错了,修改过来就行了
Sorry, something went wrong.
另外有三个地方的微信APPID都要对应上。 1.pubspec.yaml中配置的app_id,
2.Xcode中URL Types中的URL Schemes
No branches or pull requests
final Fluwx fluwx = Fluwx();
late Function(WeChatResponse) responseListener;
@OverRide
void dispose() {
// TODO: implement dispose
super.dispose();
fluwx.removeSubscriber(responseListener);
}
@OverRide
void onInit() {
// TODO: implement onReady
super.onInit();
}
The text was updated successfully, but these errors were encountered: