jpush / jshare-react-native

https://docs.jiguang.cn
MIT License
105 stars 28 forks source link

android 调用没反应 #111

Closed giantss closed 5 years ago

giantss commented 5 years ago

调用qq、微信登陆,AS控制台打印信息像下面这样的:

E/JIGUANG-JShare: [JShareInterface] do fail, can not find QQ platform

E/JIGUANG-JShare: [JShareInterface] do fail, can not find Wechat platform.

该配置的我都配置了。

我的环境:

"react-native": "0.53.0",
"jcore-react-native": "^1.2.9",
"jpush-react-native": "^2.2.9",
"jshare-react-native": "^1.3.8",

华为手机。

下面是核心配置项: image image image image

JoshLipan commented 5 years ago

签名和微信开放平台配置的一致吗,WXEntryActivity 配置了没有 还有配置的微信AppId和包名一定要保持一致 请先直接检查申请和配置的账号信息

giantss commented 5 years ago

WXEntryActivity 配置了,我感觉不像是签名和问题啊,如果是签名问题至少会返回错误码吧。qq、微信、微博调用都打印出 can not find XX platform

 JShareModule.getPlatformList((list) => {
                console.log(list);
            });

返回的是空

JoshLipan commented 5 years ago

抓下初始化到分享失败的原生log:adb logcat -v time ->a.log

giantss commented 5 years ago

android 没有初始化方法吧? setup iOS Only image

JoshLipan commented 5 years ago

你已经调用了,抓log就行 image

giantss commented 5 years ago

image

image

JoshLipan commented 5 years ago

只有这两条相关log吗,你的华为机型和Android版本是多少,先换一台手机试下呢

giantss commented 5 years ago

@JoshLipan

27 这个是我之前反馈的问题,这也是同一个问题,调用失败 js 回调错误是这样的

华为荣耀6 android 8.0 一加手机 android 7.1

giantss commented 5 years ago

image

image

还需要提供什么

JoshLipan commented 5 years ago

获取不到就是没有正确配置,你把JGShareSDK.xml 放到你系统自带的 assets 目录下试试 image

giantss commented 5 years ago

试过了 没用

AS 3.1.4

image

实在想不出那里出了问题

JoshLipan commented 5 years ago

加q:542938192 ,能否提供你配置的项目,或者提供你配置的 demo ,我们这边测试下

giantss commented 5 years ago

重新卸载 安装了一遍就好了 😢