React-native-wechat: android 授权后无返回结果

Created on 8 Feb 2017  ·  6Comments  ·  Source: yorkie/react-native-wechat

Hello!

微信分享正常,
在微信登录时,android的release版本,正常调起微信登录页,但授权后无返回结果(没有alert)

代码如下:
try {
res = await WeChat.sendAuthRequest('snsapi_userinfo');
alert(res);
}
catch (e) {
alert(e);
}

相关版本号:
"react": "^15.4.1",
"react-native": "^0.39.2",
"react-native-wechat": "^1.8.0",

设备:
华为荣耀8
android 版本: 6.0

All 6 comments

是不是没有创建:WXEntryActivity 呢?按照 linking-android-with-gradle 确认下!

谢谢回复~~~
WXEntryActivity已经创建了
image

AndroidManifest.xml 中也配置了
image

烦请大神指导下

即使配置了,依然没有任何返回结果, 不管是执行成功还是执行失败为啥都没有触发啊...

最终找到原因,是因为package name 和 applicaionid 不一致#84

你所指的package name 和 applicaionid 不一致是对于android项目哪个文件里的

same problem, can open the wechat, but no response

Was this page helpful?
0 / 5 - 0 ratings