While working on iOS, Objective C, I found the delegate of UIApplicationDelegate
,
applicationProtectedDataDidBecomeAvailable
is getting called multiple times after device unlocked. What could be the possible reasons?
applicationProtectedDataDidBecomeAvailable - On a device that uses content protection, protected files are stored in an encrypted form and made available only at certain times, usually when the device is unlocked. This notification lets your app know that the device is now unlocked and that you may access certain types of protected files again.
It is a known and normal function of the call.
According to the documentation on 'applicationProtectedDataDidBecomeAvailable' is called continually in order to tell the delegate that protected files are available now. so on lock certain files are not available.
On a device that uses content protection, protected files are stored in an encrypted form and made available only at certain times, usually when the device is unlocked. This notification lets your app know that the device is now unlocked and that you may access certain types of protected files again.
Reference: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623044-applicationprotecteddatadidbecom
I hope this helped. let me know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With