Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to open a new layout when notification pushed??

$
0
0

I am using bencoding service to make alarm with notification and the notification pushed successfully .. my next step is to open a layout with alarm name and time when notification pushed ... Here is my code

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', //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
     //Set a custom sound to play, located at: platform/android/res/raw/alarm.mp3
    // repeat: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");
 
alert("Alarm created");
Thanks

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>