If you haven't already, sign up for a free Persona account which comes with Sandbox access.
The only requirements to get up and running are:
- Xcode 11 or later
- Cocoapods for installing the dependencies
-
Login to the Persona Dashboard and go to the Integration section.
-
Select the Template you want to use from the drop-down and copy the Template ID for later.
- Clone this repository.
git clone [email protected]:persona-id/persona-ios-sdk.git
# or
git clone https://github.com/persona-id/persona-ios-sdk.git
- Using the Terminal, navigate to the folder where the repository was cloned, and then go into the
DemoApp
folder.
cd DemoApp
- Install the dependencies.
pod install --repo-update
- Open the newly created workspace
xed .
-
Enter your template ID in
WelcomeViewController.swift
on line 23 as the value forpersonaInquiryTemplateId
-
Run the project and test it out!
If you'd like to test the passport nfc tag reading flow, add the Near Field Communication Tag Reading capability to DemoApp. This can be added in the Signing & Capabilities tab in the DemoApp target. You will also need to add the Near Field Communication Tag Reading capability to the provisioning profile you are using to run the demo app.
If you'd like the more information, please check out the documentation or if you have questions, feel free to contact [email protected].
This SDK collects a user’s IDFV for fraud prevention purposes. In App Store Connect > Your App > App Privacy, if you haven’t already add in a “Device Identifier,” and fill out the questionnaire with the following answers:
- Usage: App Functionality (covers fraud prevention)
- Are the device IDs collected from this app linked to the user’s identity? Yes
- Do you or your third-party partners use device IDs for tracking purposes? No