使用说明

  • 在线状态能正常的收到推送
  • 测试小米华为的离线推送未收到消息

一番查找后,开通了小米push和华为push,在消息页面 | 推送 | 设置中填写了第三方配置

同时依赖了mixpush3.+@aar包,正确配置了小米所需的permission,完整复制了文档中的配置,并对需要填写packagename的地方进行了替换。并在application中初始化了registerXiaomiPush以及registerHuaweiPush。

再次测试,_Installation表中并没有新增deviceProfile字段,vendor字段依然为空,按照文档的说明证明配置依然是失败的。

工程师如果看到帖子可以加我的微信(crosswall),我们可以详细的沟通,或者使用teamviewer在线调试一下,万分感谢!

你好,请贴出所有日志,尤其是 currentInstallation saveInBackground() 部分的 log,我来检查一下。

@BinaryHB 你好,我同时设置了华为和小米的推送,这边tag是“===AVOS Cloud===” ,输出了几段日志

i->21: statistics library not started since not included
LogUtil$avlog->d->33: register error, is not huawei phone!
LogUtil$avlog->d->33: 0 sessions recovered
i->21: statistics library not started since not included
LogUtil$avlog->d->33: update installation error!
LogUtil$avlog->d->33: roll back installationId since error there

com.avos.avoscloud.PushService: PushService->onCreate->105: On Create
com.avos.avoscloud.PushService: PushService->getConnectionManagerInstance->672: Init push manager
om.avos.avoscloud.PushService: PushService->onStartCommand->157: Start to connect to push server with installationId aef496f936eacaaece2f62a941934959

请给出更多的信息,可以直接发私信,以防敏感信息泄漏。

注意,不要给 deviceProfile 传 _default 这样的字符串。

否则会报错:{"code":1,"error":"Invalid deviceProfile value. They must start with a letter, and a-zA-Z0-9_ are the only valid characters."}

deviceProfile 不能以下划线打头,只能是英文字母。

1 人赞了这个帖子.