Open ffJPabloFlores opened 6 years ago
make sure to change the date and time.
@uendar I got the same issue. Changing the date and time. Could you show me an example please?
RNAlarm.setAlarm(Date.parse('Mon May 14 2018 10:53:00 GMT+0000 (GMT)').toString(), title, id, '',
() => {
console.log("Alarm Setted Successfully.");
},
() => {
console.log("Failed to set Alarm!");
});
}else{
console.log("Choose the time first!");
}
After I tried one of the samples. For instance:
RNAlarm.setAlarm(Date.parse("2018-01-01T18:40:24Z").toString(), 'Meeting with customer', '', '', () => { console.log("Event triggered"); }, () => { console.log("Event trigger Failed"); });
It didn't trigger. Instead I got "trigger Failed"