How to set action for UILocalNotification “CLOSE” action? If the user click the “CLOSE” button, at the time I will stop the audio player. Is it possible to do this?
I need some suggestions about this feature.
Please help me. Thanks in advance.
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.
You can’t detect the close or view button on an
UILocalNotificationbecause the notification is handled by iOS and not your app.If the user decides to view the notification, your app will be started or brought to the foreground and then your app will receive the notification that the user used to open the app.