emekalites / react-native-alarm-notification

schedule alarm and local notification in react-native
https://www.npmjs.com/package/react-native-alarm-notification
MIT License
223 stars 94 forks source link

Snooze #156

Open sadia-onyxtec opened 2 years ago

sadia-onyxtec commented 2 years ago

How do you implement snooze? I have done the following and It does not work. const alarmNotifData = { id: "1245", // Required title: "My Notification Title", // Required message: "My Notification Message", // Required channel: "my_channel_id", // Required. Same id as specified in MainApplication's onCreate method ticker: "My Notification Ticker", auto_cancel: true, // default: true vibrate: true, vibration: 100, // default: 100, no vibration if vibrate: false small_icon: "ic_launcher", // Required large_icon: "ic_launcher", play_sound: true, sound_name: null, // Plays custom notification ringtone if sound_name: null schedule_type: 'repeat', // Works with ReactNativeAN.scheduleAlarm so alarm fires once fire_date: fireDate, snooze_interval: 2, // Date for firing alarm, Required for ReactNativeAN.scheduleAlarm. data: { foo: "bar" }, };

stale[bot] commented 2 years ago

Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.