Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ilovelessons on October 01, 2017, 08:57:10 PM

Title: What happens if a game is interrupted e.g. phone call ?
Post by: ilovelessons on October 01, 2017, 08:57:10 PM
Hi,

I am building a game for the Google Play Store and I wondering what happens to a game if you are playing it and its get interrupted e.g. you get a phone call.

When using PlayMaker to build a game will it automatically pause the game in its current state and allow the person too take the call and then resume after?

Or does this require separate coding? Any advice on how to approach this?

I wasn't too sure what to search for on the net to get insight into this issue.

Thanks guys.
Title: Re: What happens if a game is interrupted e.g. phone call ?
Post by: Groo Gadgets on October 01, 2017, 09:15:28 PM
Heya,

When you get a phone call while playing your game should behave the same as when you quit out of the game manually. You need to setup your game to listen for onApplicationQuit and onApplicationPause events.

Here's a thread that will help you get on the right track: http://hutonggames.com/playmakerforum/index.php?topic=1591.msg14044 (http://hutonggames.com/playmakerforum/index.php?topic=1591.msg14044)

Cheers,

Simon