PhoneGap - device hibernation event

I am developing an application with Phonegap for iOS and Android. I need to follow some instructions when the device returns from sleep mode.

The resume event works for this, but also fires when the user opens another application, and in my case the instructions should only be executed when the device returns from sleep mode.

Is there any way to do this?

+4
source share

All Articles