Menu

iOS silent push not working: content-available and background pushes
📰

iOS silent push not working: content-available and background pushes

DEV Community: firebase·Rushi Patel·10 days ago
#1Aemfa5F
#devtofirebase#devto#dev#push#background
Reading 0:00
15s threshold

A silent push, which Apple calls a background notification, has no alert, sound or badge. It wakes your app so it can fetch new content. Apple treats it as low priority and does not guarantee delivery, so "it worked once and then stopped" is often the system working as designed. This page goes through what must be right on the sender and in the app, and what the device itself decides.

Symptom to cause

What you see Likely cause Fix

Never arrives, alert pushes work Remote notifications background mode not ticked Signing and Capabilities > Background Modes > Remote notification

Shows a banner instead of waking the app quietly alert , sound or badge in aps next to content-available Send aps with content-available: 1 and nothing else

APNs returns 400 apns-priority: 10 with apns-push-type: background Priority 5 for background pushes, always

Delivered late, or in bursts Priority 5 pushes are sent according to the device's power state Expected; use an alert push for anything a person waits for

Arrives in…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.