Security Guidance iOS
The followings are some of the security guidance to be followed by the Requestor App for secure use of the SDK. After you configure "cardinalSession", call "getWarnings" method on cardinal session to get a list of all the Warnings detected by the SDK. For Example, Following six vulnerabilities are detected by SDK: The integrity of the SDK has tampered. SW03 An emulator is being used to run the App. SW04 A debugger is attached to the App. SW05 The OS or the OS version is not supported. The application is not installed from a trusted source. Analyze the list of warnings to take further action. Call "getSDKBuildVersion" and "getSDKBuildNumber" method from Cardinal class to get the build version and number of the SDK. For Example, After initializing, check the SDK Version to make sure you are using the latest version of the SDK.Check Warnings
NSArray<Warning *> *warnings = [session getWarnings];
Security Warnings ID Description Severity SW01 The device is jailbroken. High SW02 High High Medium High SW06 High Check SDK Version
NSString *sdkBuildVersion = [CardinalSession getSDKBuildVersion];
NSString *sdkBuildNumber = [CardinalSession getSDKBuildNumber];