Achilles
Achilles

Reputation: 1065

APNS without Badge/Alert/Sound

Can I send a notification to APNS without Badge / Alert / Sound, which should notify only to my app which is installed in the iPhone ?

It's like custom notification sending via APNS to the App in the device which should not alert the user.

Is it possible,if yes how ?

Thanks in advance !

Upvotes: 5

Views: 3107

Answers (1)

Nekto
Nekto

Reputation: 17877

Heh. It could be done (but I don't understand the purpose of that):

1) Ask user if he wants to receive Push-notifications that contains only sound alert

2) Send Push-notification without text and set sound-file that doesn't exists in app bundle or that is silent, for example:

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

Do you understand my hack? =)

Upvotes: 7

Related Questions