notifee: repeatFrequency is ignored
Hi, I use v 2.0.0 with RN 0.65.1 and cannot get weekly repeating items to work. Here is my code:
const trigger: TimestampTrigger = {
type: TriggerType.TIMESTAMP,
timestamp: scheduleDate.getTime(),
repeatFrequency: RepeatFrequency.WEEKLY,
};
const channelId = await notifee.createChannel({
id: 'default',
name: 'Default Channel',
});
// Create a trigger notification
try {
await notifee.createTriggerNotification(
{
title: 'A Notification',
body: 'Nothing fancy',
id: Math.random().toString(),
android: {
channelId,
actions: [
{
title: 'Open',
pressAction: {
id: 'open-chat',
launchActivity: 'default',
},
},
],
},
},
trigger
);
} catch (e) {
console.log('ERROR CREATING NOTIFICATION!');
console.log(e);
}
}
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (10 by maintainers)
Hi everyone 👋
what’s the point to use the
AlarmManager
rather than the defaultWorkManager
?