I’m trying to reproduce the functionality of built-in Mail application when a new message arrives while you are listening to iPod music.
What happens with the Mail app is:
- iPod’s volume lowers a bit
- Mail app plays a short sound and vibration
- iPod’s volume goes back to normal
I know how to play a sound and cause vibration, what I don’t know is how to lower iPod’s volume and restore it after my sound plays.
How can I reproduce this same functionality in my app with SDK 2.2? I know third party apps can’t run in the background. My users will play the iPod then have my app in the foreground.
This is not possible with iPhone SDK 2.2.1 or earlier. If you need this functionality please submit a bug to apple. I’ve submitted one but duplicates indicate interest so it might help promote this issue.