PolandSpring
PolandSpring

Reputation: 2674

Can you send iOS push notifications that don't wake up the phone?

I'm wondering if its possible to "alert" push notifications to an iOS device that won't wake up the phone if the screen is turned off.

To be clear, I still want this notification to appear in the lock screen/notifications pull down once the phone is woken up through another method.

Upvotes: 4

Views: 1170

Answers (1)

Marcos Crispino
Marcos Crispino

Reputation: 8218

Yes, starting in iOS 7, you can send "silent" notifications.

From iOS 7 release notes:

Apps supporting either the fetch or remote-notification background modes may be launched or moved from the suspended to background state at appropriate times. In the case of the fetch background mode, the system uses available information to determine the best time to launch or wake apps. For example, it does so when networking conditions are good or when the device is already awake. You can also send silent push notifications—that is, notifications that do not display alerts or otherwise disturb the user.

See also the Apple Push Notification Service document, specially the Notification Payload section to see how to send a silent notification.

Upvotes: 2

Related Questions