React-native-fcm: Local notification is not showing in Android Oreo

Created on 14 Jul 2018  路  9Comments  路  Source: evollu/react-native-fcm

My Paylod
FCM.presentLocalNotification({
title:'Welcome to Reno',
body: "Enjoy Discount Upto 50 Percent off",
priority: "high",
show_in_foreground: true,
local: true,
channel: "any_id"
});

Most helpful comment

I got the same issue and fix it by manually call createNotificationChannel() method because declaring channel before using notification becomes mandatory from Oreo

What I did

await FCM.createNotificationChannel({
    id: "default",
    name: "default",
    priority: "normal",
  });

And now it works

All 9 comments

same issue

+1

Looks like its not working if your targetSDKVersion is set to higher than 25

698

have you registered channels correctly?

@evollu how to register it?

I got the same issue and fix it by manually call createNotificationChannel() method because declaring channel before using notification becomes mandatory from Oreo

What I did

await FCM.createNotificationChannel({
    id: "default",
    name: "default",
    priority: "normal",
  });

And now it works

I got caught out by this too - can we add @amallo's note to the README?

added a comment to the example project

Was this page helpful?
0 / 5 - 0 ratings