In my IPhone app I am able to get push notification its appear a alert view. I want in that alert “view details” button when i will click it navigate in a specify view. Is it possible?
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
well on click of PUSH NOTIFICATION alert you can navigate to application’s specific view; but you can not add button inside that alert box.
For this you need to impliment two delegate methods.
And
Fist one is used to check if the app was launched when user clicks on a notification. If so, then in that method you can push the appropriate view controller onto the stack, just as you would normally with in-app usage.
For more details please check apple’s document here.
To see exact sample you can go to this page which shows how you can bring view when user clicks on the notification.