Screen lock detection


#1

Does ionic have the ability to detect whether screen is locked or unlocked? If not is there a plugin to do so?


#2

I believe if the screen is locked then the app gets put into the pause / resume state. You should be able to detect from that.


#3

Yes that I read is possible, but the pause state continues even when the device is locked. The reason I’m looking for this feature is for background geolocation but only during the device is in use, so unlocked. And for the geolocation to stop once its not, so the person locked it. I can explain further if I’m unclear, thanks for your answer.