Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local notification is not showing in Android Oreo #1002

Closed
vaibhgupta09 opened this issue Jul 14, 2018 · 9 comments
Closed

Local notification is not showing in Android Oreo #1002

vaibhgupta09 opened this issue Jul 14, 2018 · 9 comments

Comments

@vaibhgupta09
Copy link

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"
});

@nazrdogan
Copy link

nazrdogan commented Jul 14, 2018

same issue

@KalumDog
Copy link

+1

@moulie415
Copy link

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

@evollu
Copy link
Owner

evollu commented Jul 30, 2018

have you registered channels correctly?

@vaibhgupta09
Copy link
Author

@evollu how to register it?

@evollu
Copy link
Owner

evollu commented Jul 30, 2018

https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/app/App.js#L38

@amallo
Copy link

amallo commented Aug 14, 2018

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

@christianchown
Copy link
Contributor

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

@evollu
Copy link
Owner

evollu commented Sep 30, 2018

added a comment to the example project

@evollu evollu closed this as completed Sep 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants