How to play an audio file when application exits?

Hi,

I’ve seen them in a lot of iPhone applications but how do you play an audio file when someone exits an app?

Thanks in advance.
-Hakimo

you can’t

when the app is exited, you have a few milliseconds to store, after that you are killed by the os.

in that time you will not even get close to play sound anymore

Hi,

Really? I have seen some apps that managed to do this e.g. Talking Carl and Talking Talkers. I’ll read some more and see how it goes.

Thanks.

-Hakimo

they might potentially use one of the background task types in iOS4 or have the audio preloaded already but just using it to play a sound when the application is terminated is blurp …
the user does not press home to be annoyed but get out :wink: