Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 !

like image 780
Achilles Avatar asked Jan 16 '12 04:01

Achilles


People also ask

What is silent push notification in iOS?

Silent push notifications are simply notifications that mobile app users receive without any pings, alerts, or interruptions to the user. They arrive on the mobile device and sit in the notification tray until read or dismissed.

Do you need consent for push notifications?

Android and Fire OS don't require a user to opt in to receiving these notifications from apps.

How do I change the push notification sound on my Iphone?

To set a custom notification sound go to 'Settings,' scroll down, and then tap on 'Sound & Haptics. ' Under 'Sounds and Vibration Patterns,' select the type of notification that needs to be changed. From the menu, choose the sound that needs to be set as the notification sound.

What is rich push notification in iOS?

A rich push notification is a push notification with a rich media attachment. Mobile Foundation v8. 0 supports different rich push notifications for both Android & iOS platform.


1 Answers

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

like image 165
Nekto Avatar answered Sep 23 '22 18:09

Nekto