Limits on iPhone push notification sounds?
Asked Answered
D

5

15

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?

Dative answered 23/9, 2009 at 1:54 Comment(0)
C
28

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.

Coster answered 5/12, 2009 at 12:57 Comment(2)
how can I increase the limit more than 30 sec ?Inexhaustible
This 30 sec limit is documented here: developer.apple.com/library/archive/documentation/…Carrion
M
3

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

Magellan answered 23/9, 2009 at 2:0 Comment(0)
S
1

You may have to consider "Notification Payload" for that.You can also have Custom Alert Sounds. See this:Notification Payload

Simulcast answered 23/9, 2009 at 4:42 Comment(0)
C
1

Updated reference to Apple's documentation for 30 seconds.

https://developer.apple.com/library/prerelease/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/SupportingNotificationsinYourApp.html#//apple_ref/doc/uid/TP40008194-CH4-SW10

Coma answered 21/11, 2016 at 19:46 Comment(1)
While this does answer the question, it would be preferable to instead edit the existing answer to keep it updated rather than adding another and leaving the out-of-date one as is.Threlkeld

© 2022 - 2024 — McMap. All rights reserved.