About the Sample App
The Verisoul iOS SDK is a demonstration project that showcases Verisoul’s fake user detection technology in an iOS environment. The app includes:- Complete integration of Verisoul’s iOS SDK
- App attestation for security validation
- Privacy-compliant data collection for fraud detection
Prerequisites
Before you begin, you’ll need:- Xcode installed on your Mac
- iOS development knowledge
- Apple Developer account (for App Attest capability)
- A Verisoul Project ID (obtain this by scheduling a call)
Installation Steps
You can integrate Verisoul SDK into your iOS project using either CocoaPods or Swift Package Manager.1. Using CocoaPods
- Ensure CocoaPods is installed on your machine. If not, run:
- Add VerisoulSDK to your Podfile:
- Install the SDK:
- Open the
.xcworkspace
file in Xcode to start using the SDK.
2. Using Swift Package Manager (SPM)
- Open your project in Xcode
- Go to
File > Add Packages
- Enter the repository URL:
- Choose the version you wish to use and add the package
3. Set Up Required Capabilities
Add the App Attest capability to your project:- In Xcode, select your project in the Project Navigator
- Select your target and go to the “Signing & Capabilities” tab
- Click the ”+” button to add a capability
- Search for and add “App Attest”
- Update your app’s entitlements file:
4. Implementation
Initialize the SDK
In your AppDelegate or SceneDelegate:Get Session ID
Retrieve the session ID when needed:5. Add Privacy Manifest
Create aPrivacyInfo.xcprivacy
file in your project with the required privacy settings. The file should include:
- Privacy tracking settings
- Collected data types information
- Accessed API types
What to Expect
Once integrated, the Verisoul SDK will:- Collect device signals for fraud detection
- Validate app integrity using App Attest
- Generate a session ID for risk assessment through Verisoul’s API
- Provide fraud prevention for your iOS application