evollu / evollu/react-native-fcm
Scheduled notification not triggered when app in background (banner is showing)
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
Remote notifications work local notifications work scheduled notification work I am getting banners etc.
I need to update badge when app is in background and when I fire scheduled notification.
On android when it is fired this is triggered:
```
FCM.on(FCMEvent.Notification, async notif => {
console.log(notif);
let existing = await FCM.getBadgeNumber();
await FCM.setBadgeNumber(existing+1);
```
But on IOS when scheduled notification is fired this is not triggered.
Any idea why?
This is how I schedule it:
```
FCM.scheduleLocalNotification({
fire_date: time,
id: id.toString(),
title: title,
body: message,
priority: "high",
wake_screen: true,
my_custom_data: data
})
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.