How can we switch off notification from device?
Share
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.
Remote (Push) Notifications
If you are talking about remote (push) notifications, you can unregister for remote notifications using the
- (void)unregisterForRemoteNotificationsmethod in UIApplication (see the class reference).However, Apple notes that users can disable push notifications on their own:
Local Notifications
If you’re talking about local notifications, you can use the
- (void)cancelLocalNotification:(UILocalNotification *)notificationor- (void)cancelAllLocalNotificationsmethods, also on UIApplication (see the class reference).