Instructions to upgrade iOS SDK version to 12.0.0
This version adds improvements for the prewarming mechanism introduced in iOS 15.
The prewarming mechanism „learns” the usage pattern of the app for couple of days and can „predict” when your app will be run. The iOS system can run the app itself (partially) in the background (when the phone is locked) couple of minutes before the user opens it.
The prewarming mechanism can make the SDK to start in the background trying to read some values from the Secure Enclave - while the device is locked - which can potentially lead to some unpredictable results returned by the SDK.
Using the new public builder method you make sure that the SDK is not being called before the device is locked.
The improvements are available both for Objective-C and Swift public API. The change is yet backward compatible with the previous 12.x version, as it introduces a new (optional) public API method.
The new (optional) builder method is called buildAndWaitForProtectedData:
Additional, a new error type has been added:
which can be raised on the completion block of start
method.
The previous
build
method will be marked as deprecated in the 12.2.2 release and removed in future versions.