How does ios deal with notifications for an app that it decided to terminate while the app was suspended? My understanding is that suspended apps do not get warned and so can’t remove it’s observers itself.
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.
The default notification centre and any you’ve created yourself get terminated with the process. The default centre is per-app not systemwide. As a result the dangling pointers that would result if, in the normal run of things, you let a class be deallocated without removing itself from the notification centre aren’t a problem and aren’t something you need manage.