Concept:
My application needs to record user activities on phone. Activities contain Foreground, Background, Kill, Lock and Unlock.
What I did:
I am able to record application's Foreground, Background and Kill states using AppState library.
Requirement:
I need to perform actions on device Lock/Unlock states. Unfortunately I am unable to listen device lock and unlock event in above library.
Any help would be appreciated.
Since that day I couldn't find any way to detect Lock/Unlock event in React native.
Solution:
It works fine for us.
Hope this would help you.