Stytch's iOS device fingerprinting (DFP) SDK aggregates various attributes of a user’s device into a single identifier.
Open the following menu item in Xcode: File -> Add Package Dependencies...
In the Search or Enter Package URL search box enter this URL:
https://github.com/stytchauth/stytch-ios-dfp
Then, select the dependency rule and press Add Package.
import StytchDFP
let stytchDFP = StytchDFP()
// Required: Configure customer DFP public token
// Optional: Specify your submitURL if you wish to use a custom CNAME i.e. "https://mycname.company.com/submit"
stytchDFP.configure(withPublicToken: "public-token-test-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", submitURL: nil)
// Request a telemetryID
stytchDFP.getTelemetryID { telemetry_id in
print(telemetry_id)
}The Stytch iOS Native DFP SDK is released under the MIT license. See LICENSE for details.

