Check whether the application unlocks the ios user

Is there a way to know the event of user unlocking on iOS Device in Application?

Answered by DTS Engineer in 815008022

I’m not entirely sure what you’re asking for here, but it sounds like you’re trying to be notified when the user locks and unlocks their iOS device. If so then, no, there’s no API for that.

You can listen for the UIApplicationProtectedDataWillBecomeUnavailable and UIApplicationProtectedDataDidBecomeAvailable notifications to learn about the state of data protection state, but that’s not the same thing.

I’ve seen folks try to use various unsupported techniques for this. My advice is that you not go down that path. As with all implementation details, they’re subject to change without notice.

Why do you need this info? If you can explain more about the big picture context, I may be able to suggest an alternative path.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I’m not entirely sure what you’re asking for here, but it sounds like you’re trying to be notified when the user locks and unlocks their iOS device. If so then, no, there’s no API for that.

You can listen for the UIApplicationProtectedDataWillBecomeUnavailable and UIApplicationProtectedDataDidBecomeAvailable notifications to learn about the state of data protection state, but that’s not the same thing.

I’ve seen folks try to use various unsupported techniques for this. My advice is that you not go down that path. As with all implementation details, they’re subject to change without notice.

Why do you need this info? If you can explain more about the big picture context, I may be able to suggest an alternative path.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Check whether the application unlocks the ios user
 
 
Q