FCM.presentLocalNotification is undefined
See original GitHub issueI am trying to show notification in android app. Following event is triggering when I am receiving notification. I have used FCM.presentLocalNotification({}) inside but I am getting error undefined not a function. I console FCM object but did not found many function which is described in github
this.notificationUnsubscribe = FCM.on('notification', (notif) => {
FCM.presentLocalNotification({
id: "UNIQ_ID_STRING",
title: "My Notification Title",
body: "My Notification Message",
sound: "default",
.....
})
});
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
you may use another local notification library. why do you stick with old RN? ask the blocking repo to upgrade or fork it yourself. It is easy
ok. Thanks