Support

Can I send silent push notifications?

Yes. By default, the Layer push notification service will deliver silent push notification to iOS devices if the application is currently in the background of the device. Your application will not need to instrument any logic in order for the Layer service to deliver silent push notifications. 

WARNING about silent and local notifications:

We currently recommend that developers do not rely on silent notifications. We’ve done extensive testing on silent notifications internally with various combinations of sound, alert, and content-available flags and the net outcome is that there is no way to guarantee that iOS will wake the app up in response to a push notification. We believe this is because of how iOS handles power management. For example: if you plug the device into a power source it will get woken up on every push. When its not plugged in we've perceived that whether or not the app will be awakened is unpredictable.

If you want reliable, immediate delivery of push notifications we recommend utilizing the `alert` key in `LYRPushNotificationConfiguration` to set Alert text and to use the "Show unread in badges" feature in the dashboard. If you try to use silent notifications and emit local notifications then you will always be subject to latency and a variable amount of batching. Unfortunately, the behavior is out of our control at this time.

Have more questions? Submit a request