常见问题
最近更新:2021-12-15

常见问题

分享成功,但控制台没有相应的统计数据

1.检查是否正确的配置了极光官网申请的 appkey。
2.检查网络是否正常,没有网络的情况下,分享成功,但是数据不会上报;等下次分享数据才会上报。
3.检查 QQ, 微信,新浪微博是否在 AnodroidManifest.xml 文件里是否配置分享回调。

<activity android:name="cn.jiguang.share.android.ui.JiguangShellActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:exported="true" android:launchMode="singleTask" android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:windowSoftInputMode="stateHidden|adjustResize"> <!-- Optional QQ 分享回调--> <!-- scheme为“tencent”前缀再加上QQ开发者应用的 appID;例如appID为123456,则scheme=“tencent123456” --> <intent-filter> <data android:scheme="tencent1106011004" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <!-- Optional 新浪微博分享回调 --> <intent-filter> <action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <!-- Optional 新浪微博私信回调--> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="jsharesdk" android:host="sinaweibo"/> </intent-filter> </activity> <!-- Optional 微信分享回调,wxapi 必须在包名路径下,否则回调不成功--> <activity android:name=".wxapi.WXEntryActivity" android:exported="true" />
          <activity
    android:name="cn.jiguang.share.android.ui.JiguangShellActivity"
    android:configChanges="keyboardHidden|orientation|screenSize"
    android:exported="true"
    android:launchMode="singleTask"
    android:screenOrientation="portrait"
    android:theme="@android:style/Theme.Translucent.NoTitleBar"
    android:windowSoftInputMode="stateHidden|adjustResize">
    <!-- Optional QQ 分享回调-->
    <!-- scheme为“tencent”前缀再加上QQ开发者应用的 appID;例如appID为123456,则scheme=“tencent123456” -->
    <intent-filter>
        <data android:scheme="tencent1106011004" />
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>

    <!-- Optional 新浪微博分享回调 -->
    <intent-filter>
        <action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>

    <!-- Optional 新浪微博私信回调-->
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="jsharesdk" android:host="sinaweibo"/>
    </intent-filter>
</activity>
    <!-- Optional 微信分享回调,wxapi 必须在包名路径下,否则回调不成功-->
    <activity
        android:name=".wxapi.WXEntryActivity"
        android:exported="true" />
        

        
此代码块在浮窗中显示

4.控制台的数据每隔一个小时刷新一次。

没有安装客户端能否进行分享

如果没有安装 QQ,微信客户端,则不能进行分享; 如果没安装新浪微博客户端,可以通过网页进行分享。

微信登录授权时报错:Scope 参数错误或没有 Scope 权限

账号没有申请开发者资质认证,没有相关的权限;登录微信开发者平台,进入账号中心申请开发者资质认证通过即可。

新浪微博登录授权时报错,error:sso package or sign error

一:在新浪微博开放平台检查应用是否通过审核,没通过审核,不能使用 sso 登录;
二:应用通过审核后,要确保在微博开放平台上填写的包名和签名与工程上的包名和签名一一对应。

文档内容是否对您有帮助?

Copyright 2011-2022, jiguang.cn, All Rights Reserved. 粤ICP备12056275号-13 深圳市和讯华谷信息技术有限公司

在文档中心打开