Tuyen Nguyen
Tuyen Nguyen

Reputation: 4479

LocalPushNotification sound and iPhone's volume buttons

I implement UILocalNotification in my app which will play 16-seconds-length sound.
I notice that while the sound is being played,
if I press the side Volume buttons (on iPhone/ iPod) to increase or decrease the volume,
the sound is stopped immediately.

Do you know how to not stopped the Local Notification sound when user presses the side Volume buttons on iPhone/ iPod?

Thank you.

EDIT: I like to do the same like this i-iQ Timer app, when UILocalNotification sound is playing, if user adjust the side volume buttons, the sound keeps playing.

Upvotes: 0

Views: 580

Answers (1)

yuji
yuji

Reputation: 16725

No, the standard APIs give you no control over what happens when the volume buttons are pressed. The only sound-related thing about a UILocalNotification that you can control is to choose which sound plays.}

Upvotes: 0

Related Questions