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...
Asked
Active
Viewed 1,938 times
2
-
1Can you please post some code here? – Haresh Chhelana Dec 22 '16 at 05:11
-
https://github.com/firebase/quickstart-android/blob/master/messaging/app/src/main/java/com/google/firebase/quickstart/fcm/MainActivity.java – Raman Dhiman Dec 23 '16 at 04:43
-
please see the above url i implement from FCM from above url.. – Raman Dhiman Dec 23 '16 at 04:44
-
1Can you check and verify it please there is changing in Android version O for FCM notifications? – Tanveer Munir Jan 23 '19 at 06:51
-
If you are getting this for OREO then this [link](https://stackoverflow.com/questions/52849445/some-oreo-devices-are-not-getting-push-notification/52894271#52894271) will help you – K K Jan 23 '19 at 07:41
2 Answers
0
Check your android manifest file. It should be like this
<service
android:name="yourFireBaseMessagingServiceClass"
android:enabled="true"
android:exported="true"
android:stopWithTask="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>

Jithin Vijayan
- 307
- 5
- 19
0
@Raman Dhiman
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.
For setting Firebase notification, check out below two links:
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)
How to create and manage firebase push notification for android oreo
I think you will get resolve your issue from this information.

Hemal Patel
- 114
- 1
- 11