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
How are you?
I am trying to o similar thing. I need my app to detect if the mobile device is being used or not (locked/unlocked) because based on that I plan to launch some functions.
were you able to find a way to do this in ionic?
Thanks a lot