Return from device sleeping

Is there a way for me to run some code when returning from the device being asleep? I prefer not to disable sleeping.

You know, something I would give a name like OnDeviceAwake.

unsure how Android handles that but on iOS OnApplicationPause(bool pause) is used for any kind of “go to pause” (due to phone calls, go to device sleep etc) or coming back from pauses (phone call ended, device returned from sleep)

That is correct; OnApplicationPause(bool pause) can be used for this on Android too.

1 Like

Worked well. Thank-you.