I want to detect if the user on the Iphone switches from my game to other application (Multitasking). This way when the user comes back to the game i can pause the game.
I need something to detected that the user has switched from game to other application and back to the game.
It's mostly going to be handled on the Objective-C side, and you can do things like use UnitySendMessage to send a message to a specific game object telling you about the application switching.
There should be a MonoBehaviour event which is called when it happens
I think it's OnApplicationPause
Check the MonoBehaviour docs in the Script Reference (the local one on your hard drive for iphone), it should have it in there, as well as the one for when it's unpaused