I am using alloy to create alarm project .... on the time user selected notification must pushed and automatically open a controller displays alarm details .. i finished the notification but i have no idea how to open new controller when notification pushed .... this is my code
var alarmModule = require('bencoding.alarmmanager'); var alarmManager = alarmModule.createAlarmManager(); alarmManager.addAlarmNotification({ requestCode:requestCode, year: year, month: month, day: day, hour: hour, minute: min, //Set the number of minutes until the alarm should go off second : sec , contentTitle:'Alarm Wake up', //Set the title of the Notification that will appear contentText:'Alarm & Notify Scheduled... Please Wake up!!!', //Set the body of the notification that will apear sound:Ti.Filesystem.getResRawDirectory() +'alarm.mp3', playSound:true, //On notification play the default sound ( by default off ) vibrate:true, //On notification vibrate device ( by default off ) showLights: true , repeat: repvalue //parseInt($.snoozeTime.value)*60000 //You can use the words hourly,daily,weekly,monthly,yearly or you can provide milliseconds. //Or as shown above you can provide the millesecond value }); console.log("Alarm created");
Thanks