Click notifications of calendar

I’m creating a personal calendar notification app. I take the time to inform in advance. For example: work is 10:00, I put the newspaper 5 minutes ahead, 9:55 will be notice. At first I used local notification, it ran normally but when I restarted the phone, the notification I had set was lost. I am currently using a calendar, it also runs normally, but when I click on the message, it will go to the calendar. I want to click on the notifications then show my app. what should I do. Thank you.
Sorry i very bad english.