React-native-wechat: Android的微信登录可以调起微信,但确认后回到app无任何数据返回?

Created on 17 Dec 2017  ·  6Comments  ·  Source: yorkie/react-native-wechat

我看过其它issues,里面说“applications_id和packagename”要一致,具体指哪里?请作者解答下!
1、我的application_id肯定是包名,不是随便写的,而且和微信开放平台里面也一致!

Most helpful comment

我的appid/package name/签名都是对的, 但用户确认登录后, 还是没有触发回调

Edit:
wechat.sendAuthRequest(scope, state)
.then((response) => {
//Alert.alert(response); alert并不会弹出提示框, 这就是为什么之前一直觉得没有回调,用console.log就没有问题,
console.log(response.code);
})

All 6 comments

android 的回调 主要是 保证 AppId 要正确.
然后确认微信开放平台的签名和包名是否和应用所用的签名 和 包名一致.
微信开放平台的android 签名是由 app.keystore 决定的.
接着创建微信指定的 activity 在注册包名后面追加 .wxapi 目录,并且用指定的文件名创建 activity
比如 登录回调的文件名叫 包名.wxapi.WXEntryActivity.java

我也遇到同样的问题,有解决的吗

我的appid/package name/签名都是对的, 但用户确认登录后, 还是没有触发回调

Edit:
wechat.sendAuthRequest(scope, state)
.then((response) => {
//Alert.alert(response); alert并不会弹出提示框, 这就是为什么之前一直觉得没有回调,用console.log就没有问题,
console.log(response.code);
})

我也遇到同样的问题,有解决的吗

安卓各位有解决微信登录的吗

same problem here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HKbool picture HKbool  ·  8Comments

zhaofang picture zhaofang  ·  8Comments

eulo picture eulo  ·  4Comments

blade770 picture blade770  ·  7Comments

mengerzhuanyong picture mengerzhuanyong  ·  3Comments