smartliang / react-native-alarm

Alarm clock for react native
MIT License
79 stars 19 forks source link

Unable to set alarms #4

Open ffJPabloFlores opened 6 years ago

ffJPabloFlores commented 6 years ago

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"

uendar commented 6 years ago

make sure to change the date and time.

ffJPabloFlores commented 6 years ago

@uendar I got the same issue. Changing the date and time. Could you show me an example please?

uendar commented 6 years ago

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!");
    }