1. From us
- Your app registered with its iOS bundle ID and Team ID, and its Android package name (Register your app).
- Your test key and your live key.
- The signing secret of each webhook on your team.
- The platforms enabled for your app.
2. Decide
- Your minimum OS, at or above the SDK’s: iOS 14.0 and Android 7.0 (API 24).
- What your app passes as the
reference: a value your server already knows, with no personal data (The reference). - Whether your app passes the platforms itself, or your server prepares each verification with a token.
- Your theme, and the SDK’s strings in each language your app supports (iOS, Android).
3. Integrate
-
Zktls.configureonce at launch, andZktls.verifywhen the user starts, as in the iOS and Android quickstarts. - Your webhook endpoint checks the
Zktls-Signatureheader over the raw body, and rejects atmore than 300 seconds from now (Webhooks). - Your server matches results by
reference, processes eachplatform.finishedonce perrunId, and handles results that arrive after the user has left the app. - Your server ignores, or keeps apart, deliveries with
"test": true. - Your app offers to finish later when platforms were not started.
- A handling for every refusal code, and no automatic retry.
- Your app pins the version:
from: "2.0.1",~> 2.0or2.0.1. Read the changelog before every upgrade. - No Partner API key or webhook secret anywhere in your app or its logs.
4. Test
- With the test key and
zktls-demo, on the Simulator or an emulator: a signedplatform.finishedand averification.finishedreach your server. - Decline the intro. Close the sign-in page. Tap a link off the platform. Leave the app during a hand-off. Switch from Wi-Fi to cellular. With the live key and two platforms, stop between platforms. Each case ends cleanly, and the user can start again.
- Kill the app in the middle of the flow:
verification.finishedstill arrives, about 2 hours later, with the remaining platformsnot_started. - A delivery with a changed body, or an old
t, is rejected by your endpoint. - With the live key: a TestFlight build on a real iPhone, and a Google Play internal testing build on an Android phone with Google Play services.
- Your release build (R8 on Android) launches and completes a verification.
5. Store submission
- App Store privacy. The SDK’s privacy manifest is included for you. Add its answers to your App Privacy: User ID, Device ID and Coarse Location, linked to the user, for App Functionality. Then add the data types your verification collects. Details.
- Google Play Data safety. Declare the SDK’s part, and the permissions and
shortServiceforeground service it adds. Details. - Export compliance. Get your counsel’s answer, and set
ITSAppUsesNonExemptEncryptionin yourInfo.plist. Details. - App Review. Write notes on the sign-in pages, and provide a working demo account for each platform. Details.
- Confirm you have the right, under each platform’s terms, to access the account on the user’s behalf (Apple guideline 5.2.2).
- Add the SDK’s open-source notices to your app’s notices screen.
6. Go live
- Release builds configure the live key,
zk_live_…. - Your server uses a Production Partner API key for tokens and fetches.
- Watch the refusal codes and failure reasons you log. A
device_not_verifiedthat many users get, or a failure that repeats, is worth reporting to us.
