سؤال

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 !

هل كانت مفيدة؟

المحلول

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? =)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top