Open app from calendar reminder

You must Login before you can answer or comment on any questions.

This is a long shot but here goes. I created an app where it places reminders in the users cal. That works. What im trying to do now is, once the reminder is shown to the user, I would like the user to have the ability to open the app which created the reminder.

3 Answers

So this is how im creating the reminder:

var calendar = Ti.Android.Calendar.getCalendarById(1);
        var eventBegins = new Date(year, month, day, hours, minutes, 0);
        var eventEnds   = new Date(year, month, day, hours, minutes, 0); 
 
        var details = { title: "TITLE", 
                        description: "DESCRIPTION", 
                        begin: eventBegins, 
                        end: eventEnds
                        }
 
        var event = calendar.createEvent(details);
 
        //Add reminder
        var reminder = {minutes: 5, 
                        method: Ti.Android.Calendar.METHOD_ALERT};
        event.createReminder(reminder);
        return false;
Now, lets say the user creates 3 reminders. What Im trying to do is, once the user receives the reminder on teh android notification bar on top or views the reminder in the calender, the user can click on something in the motification.reminder and open up the app which created the reminder in this case my app.

I was looking at the notificationmanager api but I was wondering if thats OK to use since ill be creating up to 10 reminders per day and the user can remove the update these reminders.

Your Answer

Think you can help? Login to answer this question!