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
- Python and PyAPNS on the server side
- Verified multiple times on iPhone 6, iOS 8
- Did not find any consistency - the text of some messages appear, and other don't, with no pattern I could recognize
- The payload size is less than 256 bytes. Furthermore, the problems also happens on iOS 8 which has a 2k limit - so it's probably not a payload size issue
- Only one noisy (alert + sound) push was sent at the same time (thanks, Steve). There is a very slight chance that some silent pushes (no sound, no alert,
contentAvailable=1
were sent at the same time, but that shouldn't bother the noisy one.
Any idea why some alert
text do not appear in the notification bar?