My question, is there a way for a ionic app to detect whether the device screen is locked/unlocked? I do know the app can detect when it becomes 'paused' and is running in the background but this is not what I mean. The reason for this is I want to make a geolocation function that only runs while the device screen is unlocked. Thanks
↧