Migrating to OkHI iOS v1.0.6
How to migrate to the latest release
To further improve both developer integration experience as well as library performance the latest release of OkHi iOS library combines all functionality of OkCollect & OkVerify into one single library.
Remove the previous libraries
CocoaPods
Remove the previous libraries and add in the new single OkHi framework as shown bellow.
Once done run the bellow command in the same directory
SPM
Remove all the previous packages by going to Package Dependancies tab on Xcode
Install the new OkHi package by clicking on "File > Add Packages..." in Xcode and in the seaarch box add the link to the bellow repository
Configure your AppDelegate file
In your AppDelegate file, remove previous library imports and import the single OkHi library.
Once thats done, rename the previous OkHiCollect and OkHiVerify static method calls to OkCollect & OkVerify as show bellow
Please note that OkHiCollect & OkHiVerify classes have been renamed to OkCollect and OkVerify
Update the integration in your ViewController
For OkVerify to work correctly "Always" Location permission needs to be granted by your users. The library provides the requestBackgroundLocationPermission
method that enables you to manage these permission requirements as shown below.
Have a look at the previous section to make sure that you have correctly configured the plist file with location permission rationale as well as set the correct background capabilities for OkVerify to work