Integrate with an Android mobile application
To use the OneSpan Threat View Client SDK for Android applications
Add the SDK Maven dependency: import it via the local maven repository included in the Threat View Client SDK product package.
Declare the following permissions in your AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" />These permissions are required to enable geolocation, network communication, and security signals collection.
It is mandatory to ask the user for granting permission to access their location at runtime. However, under certain conditions, geolocation data usage may be subject to the General Data Protection Regulation (GDPR) of the European Union. For more information about the GDPR, see Geolocation data and GDPR Compliance; for more information about about granting apps geolocation permissions, refer to the Android Developer Documentation.
Apply the Gradle Plugin and configure it.
Initialize the SDK.
For more details on the integration steps, refer to the technical documentation included in the product package: integration.md.
Integrate with an iOS mobile application
To use the OneSpan Threat View Client SDK for iOS applications
Link ShieldSDK.xcframework to your application.
Link ThreatViewClientSDK.xcframework from the Threat View Client SDK package to your application.
Link ThreatViewNetworking.xcframework from the Threat View Client SDK package to your application.
This project has been written in Swift. To use this framework with pure Objective-C projects, you need to add a Swift file and create the bridging header file. For more information about this, refer to the Apple Developer documentation.
You are now ready to use the OneSpan Threat View Client SDK.