Quantcast
Viewing all articles
Browse latest Browse all 17050

React Native / Expo: How to detect device lock with app open vs app quit

I'm trying to detect when my app is open and the device get's locked vs when the app is left. Currently Expo appstate always shows Inactive -> Background for both locking the device and leaving the app. Shouldn't the state stay on inactive since the app is never really 'left' when locking the device?

I could only find one similar post but the answer hasn't been updated with the users solution.React Native: How to detect device lock/unlock event?


Viewing all articles
Browse latest Browse all 17050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>