Is there any way to handle iPhone Interrupt through Unity

Can any body help on this:

Is there any way to handle interrupt through Unity.
interrupt like Charging, Lock, call, SMS

Now the problem is, while playing the game lets assume any of the interrupt occurred, unity pauses the game but we are getting delay of 6 seconds and that is too much because our game is Time base Game.

Thanks in advance :slight_smile:

Is any one having same issue or any solution.

Plz

OnApplicationQuit() might help.

Thanks buddy “Tempest”

Let me try this, then I will let you know.

If you get a delay if an interrupt happens, then your code is wrong.
Then you likely do Time.time based stuff which is incorrect.

the right way to do it is an accumulator that sums up the passed time each update, its stored in Time.deltaTime and will only have a value if real time passed (and its scaled by the timeScale value)

Hello “Tempest”

Thanks for the answer. it works Great.

Thank you again.