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.