GCM通知对移动设备中的一个未接收 [英] GCM notification not received on one of the mobile devices

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

问题描述

我想GCM通知发送到设备小蜜红米手机1S,没有得到设备上的通知,而相同的通知是越来越传递到其他设备和消息计数的失败是0.Can谁能告诉问题。我已经调试它没有收到关于的onMessage 方法的调用。


  

没有得到在应用程序中的任何消息,无论是在前台或应用程序的背景状态,
  注册ID是正确的检查它IDE.GCM响应
  成功:2,失败:0



解决方案

小蜜为安全起见,禁止为每个应用程序的通知。按照这些步骤在后台接收邮件,一旦他们使用清洁退出程序。


  • 启用自动启动

  • 启用浮动和锁屏通知

启用自动启动


  • 开放的安全的应用程序。


  • 该杀的权限的,然后点击的自动启动管理


  • 添加/启用自动启动的应用程序(例如WhatsApp的)。


启用浮动和锁屏通知


  • 开放的设置的应用程序。


  • 点击上的通知的,然后点击管理通知


  • 点击上你正在寻找(例如WhatsApp的)的应用程序。


  • 启用的显示在通知栏中/上显示锁定画面,并在下拉的选项。


有关这一点参考检查:<一href=\"http://support.hike.in/entries/55998480-I-m-not-getting-notification-on-my-Xiaomi-Phone-For-MIUI-6-\" rel=\"nofollow\">http://support.hike.in/entries/55998480-I-m-not-getting-notification-on-my-Xiaomi-Phone-For-MIUI-6-

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.

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.

  • Enable Autostart
  • Enable Floating and Lock Screen Notification

Enable AutoStart

  • Open Security App.

  • Got to Permissions, then Click on Auto Start Management.

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

Enable Floating and Lock Screen Notification

  • Open Settings App.

  • Click on Notifications, then click on Manage Notifications.

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

  • Enable Show in notification shade / Show on lockscreen and in drop down option.

For Reference check this out : http://support.hike.in/entries/55998480-I-m-not-getting-notification-on-my-Xiaomi-Phone-For-MIUI-6-

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

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