其中一台移动设备未收到 GCM 通知 [英] GCM notification not received on one of the mobile devices

查看:20
本文介绍了其中一台移动设备未收到 GCM 通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向设备 xiaomi redmi 1s 发送 GCM 通知,但未在设备上收到通知,同时向其他设备发送了相同的通知并且消息计数失败为 0.谁能告诉我这个问题.我已经调试过它没有收到任何关于 onMessage 方法的调用.

I am trying to send GCM notification to the device xiaomi redmi 1s, not getting the notification on the device while the same notification is getting delivered to the other devices and the failure for message count is 0.Can anyone please tell the issue.I have debugged it not received any call on onMessage method.

在应用程序的前台或后台状态中都没有收到任何消息,在 IDE.GCM 响应中检查了注册 ID 是否正确"成功":2,"失败":0

not got any message in the app either in the foreground or in the background state of the application, the registration id is correct checked it in IDE.GCM response is "success":2,"failure":0

推荐答案

小米出于安全考虑禁用了每个应用程序的通知.当他们使用清洁器退出应用程序后,请按照以下步骤在后台接收消息.

Xiaomi for security purposes disables the Notification for each Application. Follow these steps to receive messages in background once they quit the app using cleaner.

  • 启用自动启动
  • 启用浮动和锁定屏幕通知

启用自动启动

  • 打开安全应用.

进入权限,然后点击自动启动管理.

添加/启用自动启动应用程序(例如 Whatsapp).

Add/Enable auto start apps (e.g. Whatsapp).

启用浮动和锁屏通知

  • 打开设置应用.

点击通知,然后点击管理通知.

点按您要查找的应用(例如 WhatsApp).

Tap on the App which you are looking for (e.g. WhatsApp).

启用在通知栏显示/在锁屏和下拉菜单中显示选项.

参考:http://support.hike.in/entries/55998480-Im-not-getting-notification-on-my-Xiaomi-Phone-For-MIUI-6-

这篇关于其中一台移动设备未收到 GCM 通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆