Signet

Mobile apps and SDKs (beta)

Get a session ID from your iOS, Android or React Native app; your server calls POST /v1/assess as usual. Prove that requests come from your app with attestation.

Install the SDKs

Download the SDKs

// iOS 15+: the package in ios/
import Signet

let signet = SignetClient(siteKey: "pk_live_...", appId: "com.your.bundle", timeout: 3)
do {
    let sessionId = try await signet.collect()
    // POST sessionId to your server
} catch {
    // continue checkout
}
// Android: sources in android/. Call off the main thread.
val signet = SignetClient(siteKey = "pk_live_...", appId = "com.your.package", timeoutMs = 3_000)
try {
    val sessionId = signet.collect(context)
    // POST sessionId to your server
} catch (e: Exception) {
    // continue checkout
}
// React Native: the wrapper in react-native/. Link the native sources, then rebuild.
import { collect } from '@signetsentry/react-native';

const sessionId = await collect({ siteKey: 'pk_live_...', appId: 'com.your.app', timeoutMs: 3000 });

If the site key has an origin allow-list, add app:com.your.bundle or the package name, sent as X-Signet-App-Id or app_id. An empty list allows any app. On a timeout, continue and log it. Server helpers: Node, Python and PHP.

Settings and reason codes

The iOS, Android and React Native SDKs (beta) post to POST /v1/collect and return a session ID. Your server calls POST /v1/assess as usual.

SettingValue
platformios, android or react_native
Origin allow-listAdd app:com.your.app and send X-Signet-App-Id.
IdentifierA random durable ID, optionally shared across your iOS apps. The SDKs also send identifierForVendor or a pseudonymized ANDROID_ID. They never read IDFA or AAID.
TimeoutAbout 3 s, so your flow never waits.
Reason codeMeaning
EMULATOR_DETECTEDAn emulator or simulator. Also used on the web.
ROOTED_DEVICE, JAILBROKEN_DEVICEThe phone’s protections are removed.
APP_INTEGRITY_FAILEDThe app appears altered. Use attestation for proof.

What they send

The SDKs never read IDFA or AAID, even with tracking consent.

CategoryData
IdentifiersThe durable ID below; identifierForVendor (iOS) or a hash of ANDROID_ID
DeviceModel, operating system, screen, locale, platform
IntegrityEmulator, simulator, root and jailbreak signs; app_integrity; with attestation, an App Attest assertion or a Play Integrity token

Durable ID

A random ID made on first run, sent as device.durable_id. It is hashed and unique to your account. A device Signet already knew keeps its visitor_id (match_type: "migrated").

TopiciOSAndroid
StoredOn the device only, not backed upOn the device only, not backed up
After a reinstallCan surviveRemoved
Turn offuseDurableId: falseuseDurableId = false
DeleteresetDurableId()resetDurableId()
New phoneDoes not followDoes not follow

It can outlast a reinstall on iOS. Say so in your privacy notice.

To share one ID across your iOS apps:

let signet = SignetClient(
    siteKey: "pk_live_...",
    appId: "com.your.bundle",
    keychainAccessGroup: "ABCDE12345.com.your.shared"   // $(AppIdentifierPrefix)com.your.shared
)
  1. In Xcode, add Keychain Sharing to each target with one group, such as com.your.shared. Xcode writes the keychain-access-groups entitlement.
  2. Sign every app with the same team. Pass the full group with the Team ID prefix.
  3. The first app makes the ID. An app without the group keeps its own.

Attestation

Proof that requests come from your genuine app. Turn it on with PUT /v1/attestation or in the dashboard.

PlatformWhat you provide
Android, Play IntegrityAn integrityToken function on SignetClient; the decryption and verification keys from Play Console, App integrity, Response encryption. Keys are write-only and kept for your account alone.
iOS, App AttestuseAppAttest: true; your Apple Team ID

Android: Play Integrity

  1. In Play Console, App integrity, link a Google Cloud project.
  2. Under Response encryption, manage keys yourself. Copy both keys into Signet.
  3. Add com.google.android.play:integrity and pass a token function.
val integrity = IntegrityManagerFactory.create(context)
val signet = SignetClient(
    siteKey = "pk_live_...", appId = "com.your.package",
    integrityToken = { nonce ->
        Tasks.await(integrity.requestIntegrityToken(
            IntegrityTokenRequest.builder().setNonce(nonce).setCloudProjectNumber(YOUR_PROJECT_NUMBER).build()
        )).token()
    },
)

iOS: App Attest

Set your Apple Team ID in Signet. Real devices only. While testing from Xcode, allow Apple’s development environment in settings.

let signet = SignetClient(siteKey: "pk_live_...", appId: "com.your.bundle", useAppAttest: true)

Modes

ModeEffect
monitorAdds the result to the score.
enforceAlso refuses unverified mobile sessions: 403 attestation_failed. Browsers are not affected.

Reason codes

CodeMeaning
ATTESTATION_FAILEDIt did not verify.
APP_NOT_RECOGNIZEDGoogle Play does not recognize this copy of the app.
DEVICE_INTEGRITY_FAILEDThe device fails Google’s check.
ATTESTATION_MISSINGNone was sent.

Rules can read device.attestation (verified, failed, missing, not_configured) and device.attestation_reason.

Limits and errors

Beta: APIs may change. Test in your own app before you rely on them. Also the common errors.