l***@163.com
l***@163.com
  • 发布:2017-10-18 13:20
  • 更新:2017-10-18 13:20
  • 阅读:7020

个推中plus.push.getClientInfo()获取clientId为null的解决方法

分类:Native.js

1、android中删除所有关于小米推送的权限和配置。
2、删除个推中下面的服务,解决小米5手机中无法获取clientId的问题

 <service  
            android:name="com.igexin.download.DownloadService"  
            android:process=":pushservice"/>  
        <receiver android:name="com.igexin.download.DownloadReceiver">  
            <intent-filter>  
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>  
            </intent-filter>  
        </receiver>  
        <provider  
            android:name="com.igexin.download.DownloadProvider"  
            android:authorities="downloads.com.tengluo.zhxf"  
            android:exported="true"  
            android:process=":pushservice"/>  
        <receiver android:name="io.dcloud.feature.apsGt.GTNotificationReceiver">  
            <intent-filter>  
                <action android:name="android.intent.action.BOOT_COMPLETED"/>  
                <action android:name="com.tengluo.zfapp.__CREATE_NOTIFICATION"/>  
                <action android:name="com.tengluo.zfapp.__REMOVE_NOTIFICATION"/>  
                <action android:name="com.tengluo.zfapp.__CLEAR_NOTIFICATION"/>  
                <action android:name="com.tengluo.zfapp.__CLILK_NOTIFICATION"/>  
            </intent-filter>  
        </receiver>
0 关注 分享

要回复文章请先登录注册