Adam Matan
Adam Matan

Reputation: 136499

APNS: Screen blinks but no text is shown

The problem

Some APNS push notifications that I am sending from a server contain alert and sound, but they only cause the iPhone screen to blink momentarily, while no text is shown in the notifications section.

Context

Any idea why some alert text do not appear in the notification bar?

Upvotes: 3

Views: 225

Answers (2)

David Hoerl
David Hoerl

Reputation: 41672

I saw similar problems a short while ago with two scenarios:

18798969 Notifications that set a badge to 0 never appear! Status: still open

Sent a notification and set the badge to 5. Then send another and set it to 0. The text is never seen (screen flashes briefly)

19238323 'content-available' notifications not delivered to my app Status: Duplicate of 18645681 (Open)

If notification contains a 'content-available' value, and the WIFI signal is weak, it does not get shown or delivered. Move close to the router so you have a 5 bar signal, now it works.

Upvotes: 3

Steve Tauber
Steve Tauber

Reputation: 10179

Is it possible you are sending too many too quickly?

From the Technical troubleshooting guide:

Some Notifications Received, but Not All

If you are sending multiple notifications to the same device or computer within a short period of time, the push service will send only the last one.

Here's why. The device or computer acknowledges receipt of each notification. Until the push service receives that acknowledgment, it can only assume that the device or computer has gone off-line for some reason and stores the notification in the quality of service (QoS) queue for future redelivery. The round-trip network latency here is of course a major factor.

Upvotes: 1

Related Questions