APNS without icon / warning / sound

Can I send an APNS notification without Badge / Alert / Sound, which should only notify about my application that is installed on the iPhone?

It is similar to sending notifications via APNS to the application in the device, which should not cause a warning to the user.

Is it possible, if so, how?

Thanks in advance!

+5
source share
1 answer

Heh. This can be done (but I do not understand the purpose of this):

1) Ask the user if he wants to receive push notifications containing only sound alerts

2) Send a push notification without text and install a sound file that does not exist in the application bundle, or it is inactive, for example:

{
    "aps" : {
         "sound" : "0.aiff"
    }
}

Do you understand my hack? =)

+6
source

All Articles