using the following sdk documentation for Seon device fingerprinting please write a…
- User
using the following sdk documentation for Seon device fingerprinting please write a flutter wrapper
IOS Doc Overview The Device Fingerprint tool collects thorough insight about the devices associated to a user. Account takeovers and multiple account signups, payments can easily be avoided by applying the Device Fingerprinting module. To implement SEON SDK for iOS, follow the steps below.
Requirements iOS 9.0 or higher (optional) Access WiFi Information entitlement for wifi_mac_address and wifi_ssid (optional) Core Location permission for wifi_mac_address and wifi_ssid (starting from iOS 13) NOTE: If the listed permissions are not available for the application, the values collected using those permissions will be ignored. We recommend using as much permission as possible based on your use-case to provide reliable device fingerprint.
Installation The recommended approach for installing SeonSDK is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.
Using CocoaPods Install CocoaPods if not already available:
gem install cocoapods To integrate SeonSDK into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'SeonSDK' Then you can use install as usual:
pod install Integration Swift Integration Setup To be able to use the SDK in projects written in Swift you should add the use_frameworks ! attribute to the Podfile:
use_frameworks! After that the SDK can be imported like any other library:
@import SeonSDK Alternatively a bridging header file can be used importing the SDK there:
#import If you opt to use a bridging header, the path to the header must be set in Build Settings -> Objective-C Bridging Header
Integration /* CONFIGURATION */
let seonfp = SeonFingerprint()
// Enable logging seonfp.setLoggingEnabled(true)
// Set session_id seonfp.sessionId = "CUSTOM_SESSION_ID"
/* INVOCATION */
// Compute fingerprint seonfp.fingerprintBase64 { (seonFingerprint:String?) in //set seonFingerprint as the value for the session //property of your Fraud API request. } Objective-C Integration ... @import SeonSDK; ... /* CONFIGURATION */
// Enable logging [[SeonFingerprint sharedManager] setLoggingEnabled:true]
// Set session_id [[SeonFingerprint sharedManager] setSessionId:@"[CUSTOM_SESSION_ID]"];
/* INVOCATION */
// Compute fingerprint asynchronously [[SeonFingerprint sharedManager] fingerprintBase64With:^(NSString *seonFingerprint) { //set seonFingerprint as the value for the session //property of your Fraud API request. }];
Android doc
Overview The Device Fingerprint tool collects thorough insight about the devices associated to a user. Account takeovers and multiple account signups, payments can easily be avoided by applying the Device Fingerprinting module. To implement SEON SDK for Android, follow the steps below.
- Assistant
- User
write android java implementation
- Assistant
To implement the platform-specific code for Android using Java, open
android/src/main/java/com/example/seon_flutter_wrapper/SeonFlutterWrapperPlugin.javaand add the following code:java - User
setup and write test for critical functions
- Assistant
To set up and write tests for the critical functions of the SeonFlutterWrapper, you will create a unit test file in the
testfolder of your Flutter package. The primary function to test isgetFingerprintBase64.- Create a new file named
seon_flutter_wrapper_test.dartin thetestfolder:
dart - Create a new file named