Migration from 1.3.x to 1.4.x
PowerAuth Mobile SDK in version 1.4.0 introduces support for an additional activation OTP feature.
Compatibility with PowerAuth Server
- This release is fully compatible with PowerAuth Server version
0.24.x.
Important
- Please be aware that PowerAuth mobile SDK
1.4.1fixed a serious issue with protocol upgrade fromV2.xtoV3.1. You should upgrade your application to1.4.1and newer.
Android
API changes
-
PowerAuth mobile SDK now requires at least Android API level 19 (Android 4.4 KitKat).
- Added a new
PowerAuthActivationclass that unifies an activation creation process. Use new simplePowerAuthSDK.createActivation(activation, listener)method to create an activation.- This change doesn’t break your existing code. We still maintain an old way of the activation creation, but don’t hesitate to try this new approach.
-
The
ActivationStatus.State_OTP_Usedenumeration is now deprecated. Please useActivationStatus.State_Pending_Commitas a replacement. - Version 1.4.2+: The
PA2Keychainclass is no longer available. You can useKeychainFactoryandKeychaininterface from the same package as a replacement. Changes in the underlying keychain implementation has the following impact into your application’s code:PowerAuthSDK.Builder.build()method now throws an exception in case that yourPowerAuthKeychainConfigurationenforces a higher level of keychain protection than it is supported on the device. By default,KeychainProtection.NONEis used, so the fallback to no-encryption is allowed and such exception is never thrown.- If you use higher levels of proteciton than
KeychainProtection.NONE, then your application may useKeychainFactory.getKeychainProtectionSupportedOnDevice()to determine whether the device supports enough level of protection. You can display an error message to the user, if the application cannot be used on the device. - Various
PowerAuthKeychainConfigurationclass constructors are no longer available. You have to usePowerAuthKeychainConfiguration.Builder()to construct a custom keychain configuration.
iOS
API changes
-
PowerAuth mobile SDK now supports bitcode.
- Added a new
PowerAuthActivationclass that unifies an activation creation process. Use new simplePowerAuthSDK.createActivation(activation) { .. }method to create an activation.- This change doesn’t break your existing code. We still maintain an old way of the activation creation, but don’t hesitate to try this new approach.
- The following interfaces are now deprecated:
- The
PA2ActivationState.otp_Usedenumeration is deprecated. UsePA2ActivationState.pendingCommitas a replacement.
- The
- Removed deprecated interfaces:
- The
PA2SupportedBiometricAuthenticationenumeration is no longer available. UsePA2BiometricAuthenticationTypeas a replacement. - The
PA2Keychain.addValue(Data, forKey: String, useBiometry: Bool)method is no longer available. UseaddValue(Data, forKey: String, access: PA2KeychainItemAccess)as a replacement. - The
PA2Keychain.addValue(Data, forKey: String, useBiometry: Bool, completion:)method is no longer available. UseaddValue(Data, forKey: String, access: PA2KeychainItemAccess, completion:)as a replacement.
- The
Last updated on May 27, 2021 (10:17)
Edit on Github
Send Feedback