# Going to production

> Apply once, then move from sandbox faces on one phone to real faces, enrolled with consent and synced to every device.

Source: https://docs.faceping.ai/going-live/

Your verify code stays the same. What changes is **where faces come from**: in production they're enrolled with the person's consent and synced to the devices that need them.

You can try all of this before you apply: your sandbox key works on the [server API](https://docs.faceping.ai/quickstart/) on one practice list (up to 25 people, each face deleted after 24 hours, nothing billed). Going live lifts those limits, gives you API keys (`fp_…`) and lets you enrol real people.

## 1. Apply to go live

From [app.faceping.ai](https://app.faceping.ai), choose **Apply to go live** and tell us what you're building. We check the use case once (face templates are biometric data under GDPR and several US state laws), usually within two working days. When we approve it, you sign our customer agreement, which includes the [data processing agreement](https://faceping.ai/legal/dpa). Keep building in the sandbox while you wait. The [compliance pack](https://docs.faceping.ai/compliance/#what-you-do) (DPIA template, privacy notice template, consent wording) is already in your sandbox dashboard under [**Data & compliance**](https://app.faceping.ai/data), so you can prepare your paperwork first.

Using FacePing with your own employees or contractors (attendance, timekeeping or workplace access) needs a separate review and terms. See [Workplace use](https://docs.faceping.ai/compliance/#workplace) and talk to us before you build.

## 2. Create a check-in list

Faces are grouped into **check-in lists** ("lists" for short). A list has an optional end date:

| Use | Create a… | Faces are deleted |
|---|---|---|
| A show, festival, or course | List **with an end date** | Automatically, 0 to 30 days after the list ends (you choose; default 7) |
| Gym members, visitors | **Ongoing** list (no end date) | Each person's face at most 1 to 36 months after they enrolled (`maxAgeMonths`, required in the API; the dashboard suggests 12), or sooner when you remove them |

On an ongoing list, a face that reaches its maximum age is deleted from the server and every device, and the person can simply enrol again. FacePing never collects check-in logs, so the time runs from enrolment, not from the last visit.

Either way, it works the same on the device.

## 3. Enrol people, with consent

Pick whichever suits where people already are:

- **The FacePing widget** on your sign-up or ticket page: we show the consent wording, take the selfie and enrol them. See [The enrolment widget](https://docs.faceping.ai/widget/).
- **Your own server**, if you collect the photo and consent yourself: see [Server-side enrolment](https://docs.faceping.ai/server-enrollment/).
- **The dashboard**, at a staffed desk or reception.

## 4. Pair each device

Add the device to the list ([**Dashboard → Check-in lists → your list → Devices**](https://app.faceping.ai/lists), or `POST /v1/lists/{listId}/devices` in the API) and give its **device token** to the app instead of the sandbox key. Build one app for every device and pair each one at runtime: the app keeps the token in the device's secure storage and hands it to FacePing on every launch. [Pair each device](https://docs.faceping.ai/devices/#pair-each-device) has the code for every platform. In short, with `deviceToken` read from secure storage:

```csharp title=".NET MAUI"
builder.UseFacePing();                       // MauiProgram.cs: no key or token
await faceping.PairAsync(deviceToken);       // on launch, or from your pairing screen
```

```csharp title="Avalonia"
builder.UseFacePing();                       // each platform project's CustomizeAppBuilder: no key or token
await IFacePing.Current.PairAsync(deviceToken);
```

```kotlin title="Android (Kotlin)"
FacePing.init(context, deviceToken = deviceToken)
```

```swift title="iOS (Swift)"
try FacePing.configure(deviceToken: deviceToken)
```

```dart title="Flutter"
await FacePing.init(deviceToken: deviceToken);
```

```ts title="React Native"
await FacePing.init({ deviceToken });
```

```ts title="Capacitor"
await FacePing.init({ deviceToken });
```

The code to sync and check people in is the same as in the sandbox: see [Devices and offline sync](https://docs.faceping.ai/devices/#3-sync-then-check-people-in).

The device downloads an encrypted copy of the faces it needs, then keeps it up to date in the background. Revoking the device wipes its copy at its next sync; a device that can't sync stops verifying after 24 hours.

> Never put an API key in an app. Device tokens can only download one list's faces, and nothing else.

On Android, keep FacePing's data out of backups and phone-to-phone transfers. FacePing encrypts its face data with a key kept in the Android Keystore, which neither includes, so a copied store could never be read on another phone, and face data shouldn't leave the device anyway. Two settings do it:

- `android:allowBackup="false"` on `<application>` (or `"allowBackup": false` in Expo's `app.json`), for cloud backup on every Android version.
- From Android 12, `allowBackup` no longer covers device-to-device transfer: also point `android:dataExtractionRules` (and, for Android 11 and earlier, `android:fullBackupContent`) at rules that exclude FacePing's data from both `cloud-backup` and `device-transfer`. FacePing keeps its data in `faceping/` in the app's files, and its keys in one shared preferences file: `ai.faceping.sdk.keys.xml` with .NET MAUI and Avalonia, `faceping.keys.xml` with the Android (Kotlin), Flutter, React Native and Capacitor SDKs. The .NET MAUI, Avalonia, Android, Flutter and Capacitor guides show both files; with Expo, FacePing's config plugin adds them for you.

On iOS there's nothing to do: every FacePing SDK keeps its folder out of iCloud and computer backups.

If your server acts on check results (a member check-in, a door, a payment), have the app send each result's `signedResult` to your server, with a nonce your server issued for that check, and verify it there: [Signed check results](https://docs.faceping.ai/signed-results/). Devices sign their results from their first sync; there's nothing to switch on.

## 5. Choose a plan

Approval starts a free 30-day pilot (up to 500 people and one check-in list). After that, you pay for each person stored with FacePing in a month; checks and devices are unlimited. A person counts if their face is still stored at the end of the month, or if they were enrolled and deleted within it: someone on a one-day list counts once, a member counts every month they're enrolled. Plans and prices: [Plans and billing](https://docs.faceping.ai/billing/).

## 6. Check the paperwork

You're the controller of your users' face data, and FacePing is your processor. Before launch, publish a face check-in privacy notice, offer a way in that doesn't use face check-in, and keep a DPIA. Our templates are in [Privacy and compliance](https://docs.faceping.ai/compliance/).
