小米推送收不到如何排查

集成第三方小米推送,收不到推送消息排查:
已邀请:

1、是否在小米开发者后台创建应用,是否将AppSecret填写到融云后台

https://rongcloud-res.cn.ronghub.com/529648e67e266df8f1f14b58fb4fa13e.png?attname=1525343072829855.png

2、是否在小米开发者后台开启应用的push服务:


https://rongcloud-res.cn.ronghub.com/3a921c3dbd2f41b84aaf2917d2020842.png?attname=1525343073821793.png

https://rongcloud-res.cn.ronghub.com/30d0b24179005974a70fffacc27789fa.png?attname=1525343074670015.png

3、检查项目push相关配置是否正确:

https://rongcloud-res.cn.ronghub.com/d8e2c503c689ae8a13a5d4d400845ab4.png?attname=1525343074186980.png

4、小米推送是否初始化:

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        if (getApplicationInfo().packageName.equals(getCurProcessName(getApplicationContext()))) {
           PushConfig config = new PushConfig
                               .Builder()
                               .enableMiPush(Constants.mipush_appid, Constants.mipush_appkey)
                               .build();
           RongPushClient.setPushConfig(config);
          
        }
    }
}


要回复问题请先登录注册