Hi there,
I used notifee to notify schedule reminders. On IOS it works fine. But on Android then have a problem.
When I set reminders RepeatFrequency.DAILY by notifee.createTriggerNotification at a time of day it works, but not working the next day.
Example:
timestamp: 21:00,
repeatFrequency: RepeatFrequency.DAILY
It works at 21:00 today, but not working at 21:00 tomorrow
Code:
const trigger: TimestampTrigger = {
type: TriggerType.TIMESTAMP,
timestamp: date.getTime(),
repeatFrequency: RepeatFrequency.DAILY,
alarmManager: {
allowWhileIdle: true,
},
};
notifee.createTriggerNotification(
{
title: t('notification.remindNotificationTitle'),
body: t('notification.remindNotificationBody'),
android: {
channelId: channelId,
vibrationPattern: [300, 500],
smallIcon: 'small_ic',
importance: AndroidImportance.HIGH,
pressAction: {
id: 'default',
launchActivity: 'default',
},
},
ios: {
critical: true,
criticalVolume: 1,
},
},
trigger,
)
package.json:
"react-native": "0.67.2",
"@notifee/react-native": "^5.6.0",
SDK:
compileSdkVersion = 31
targetSdkVersion = 31
Hope to help, thanks.
Hi there,
I used notifee to notify schedule reminders. On IOS it works fine. But on Android then have a problem.
When I set reminders
RepeatFrequency.DAILYbynotifee.createTriggerNotificationat a time of day it works, but not working the next day.Example:
It works at 21:00 today, but not working at 21:00 tomorrow
Code:
package.json:
SDK:
Hope to help, thanks.