tiagosito tiagosito - 1 year ago 97
iOS Question

iOS - Detect Push Notifications when the App is terminated by the user

I have a problem. When my App is Terminated by the user, push notifications are not detected by the application. The push notification is sent with

content_available = true

What should I do?

Answer Source

This is default system behaviour. If you Application is terminated by the user (from the App switcher), Silent Push Notifications (content_available = true) will not wake the Application, i.e. Application:didreceiveremotenotification will not be called.

If you want the user to be notified, do not send a Silent Push Notification. Send a normal push notification which will show up in the user's notification tray.