Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limits on iPhone push notification sounds?

Does anybody know of any limitations on the sounds that can be played when an iPhone app receives a push notification? Specifically, is there a maximum sound length?

Also, I am assuming that the volume of the sound will match whatever the user has set their ringer volume to, and if set to vibrate mode, the phone will vibrate instead of playing a sound. Is this correct?

like image 893
James J Avatar asked Sep 23 '09 01:09

James J


People also ask

How long can a notification sound be?

Do not use a sound file longer than about 20 seconds.

Does Apple block push notifications?

iOS enables you to both disable push notifications entirely, or turn them off for individual apps. To access iOS notifications settings, go into the Settings > Notifications menu. From that list, you can configure each app's notifications settings or disable them.


2 Answers

I have tested the maximum length of a push notification audio alert, which not surprisingly turned out to be 30 seconds. Any longer audio files will result in the built-in Tri-tone alert being played instead.

like image 71
smilespray Avatar answered Oct 10 '22 23:10

smilespray


I don't know for sure, but based on various API limitations I would guess the length would be 30 sec. max. And yes, the volume of the ringer is the volume of the sound. Same with vibrate mode

like image 27
Matt S. Avatar answered Oct 10 '22 23:10

Matt S.