react-native-wechat
react-native-wechat copied to clipboard
真机调试时,wechat.sendAuthRequest()无任何反应,其他api均有反应,有哪些可能的原因?
Please read and follow the issue templates:
- Bug Report or Documentation Issue or Questions and Help? Bug Report
- Which
react-native-wechat
version are you using? "react-native-wechat": "^1.9.12" - What platform does your issue occur on? (Android/iOS/Both) Android
- Please provide a clear and concise description of what the bug is as precisely as possible,you can:
- post a screenshot to explain in which case you get the issue?
- related
logs
? - show us the code you are using?
handleWxLogin = () => {
let scope = 'snsapi_userinfo';
let state = 'wechat_sdk_demo';
//判断微信是否安装
WeChat.isWXAppInstalled().then(async isInstalled => {
if (isInstalled) {
// WeChat.openWXApp();
// WeChat.shareToSession({
// type: 'imageUrl',
// title: 'web image',
// description: 'share web image to time line',
// mediaTagName: 'email signature',
// messageAction: undefined,
// messageExt: undefined,
// imageUrl: 'http://www.ncloud.hk/email-signature-262x100.png',
// });
//发送授权请求
try {
const responseCode = await WeChat.sendAuthRequest(scope, state);
Toast.info(responseCode.code);
} catch (error) {
Toast.info('登录授权发生错误' + error.message);
}
} else {
Toast.info('没有安装微信');
}
});
};
- others.
Your Environment
software | version |
---|---|
react-native-wechat | ^1.9.12 |
react-native | 0.61.5 |
node | ^ version |
npm or yarn | ^ version |
你可以看下你的WXEntryActivity 有没有在wxapi文件夹下
我也出现了同样的问题,在iOS上,断点显示sendAuthRequest方法已经成功,callback也回调了,可是js端就是没有反应
@V1sk 有解决吗? 我遇到同样的问题
问题+1
依照此文件构建问题解决。 https://github.com/yorkie/react-native-wechat/blob/master/docs/build-setup-android.md
same issue+1
依照此文件构建问题解决。 https://github.com/yorkie/react-native-wechat/blob/master/docs/build-setup-android.md
请问解决方法有吗 链接失效了