Hi, thanks for the quick reply.
The application that I mentioned is one that works actively in the background. This has been confirmed by looking into the other features of the app, and they are working as expected.
The requirement of this application is to track how many times a user interacts with their phone when they are on a journey. Is there a way to detect these better?
Post
Replies
Boosts
Views
Activity
Hi,
I have tried this but have found this to be inconsistent. The UIApplicationProtectedDataWillBecomeUnavailable is not called every time the device is locked. It is not called immediately after the lock event, and sometimes misses the event altogether. Is there a different approach to this problem that guarantees detecting lock & unlock correctly every time?