Android FCM通知未进入某些Android设备 [英] Android FCM Notification not getting in some Android devices

查看:55
本文介绍了Android FCM通知未进入某些Android设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为Android应用实现FCM通知时.我未在Mi的某些Android设备(如Mi,Oppo,一加二等)中收到通知,而在Mi中刷新了令牌,但未收到通知,而Oppo或一加二未获得刷新后的令牌和通知.我该如何解决这个问题?谢谢...

When I implement the FCM Notifications for Android app. I am not getting the notifications in some Android devices like Mi, Oppo, One Plus Two etc. in Mi getting refreshed token but not getting the notification and Oppo or One Plus Two not getting the refreshed token and notifications. How can I fix this problem? Thanks...

推荐答案

@Raman Dhiman

@Raman Dhiman

Form Android版本Oreo,在通知管理器中对设置通知进行了更改.为此,您必须创建和管理通知渠道,才能在其中设置通知通知管理器.

Form Android version Oreo, there are changes for setting notification in the notification manager. For that, you have to create and manage notification channel to set a notification in notification manager.

要设置Firebase通知,请查看以下两个链接:

For setting Firebase notification, check out below two links:

  1. Firebase云消息传递:警告更新为Android Oreo.就您而言,您的日志猫以及设备通知Toast消息中都会出现错误(仅当开发人员选项处于启用状态时)

  1. Firebase Cloud Messaging: Warning updating to Android Oreo. In your case, you will get an error in your log cat as well as also in your device notification toast message (only if developer option is on)

如何创建和管理我认为您将从这些信息中解决您的问题.

I think you will get resolve your issue from this information.

这篇关于Android FCM通知未进入某些Android设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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