How to handle window button in Windows Phone?

If I press window/home button on my windows phone mid-game, it takes me to the start screen but it doesn’t pause the game. Thus, when I get back to my game, it just continues from where I had left off.

I want to pause the game if the player opens another app, or gets a call, or anything…

Hi see the following guides at

http://unity3d.com/pages/windows/porting

The windows phone one is here and has a full section on back button support
http://az527613.vo.msecnd.net/wpchallengefiles/PortingTipsWindowsPhoneUnity01.pdf,

Hi,

Use OnApplicationFocus() method to pause/unpause your game.