# Mobile apps
Source: https://sovaria.in/docs/mobile-overview

Build iOS, Android and Flutter apps on Sovaria: sign-in with deep links and PKCE, device sessions, push notifications and app attestation.

Everything a web app uses works the same from a phone — database, collections, storage, functions and realtime, all checked by your [policies](https://sovaria.in/docs/row-level-security). On top of that Sovaria handles what is specific to mobile apps:

| Feature | What it does | Guide |
|---|---|---|
| Registered apps | Your bundle id / package name, signing certificates and the redirect URIs sign-in may open. Sovaria hosts the universal-link files for you. | [Sign-in for mobile apps](https://sovaria.in/docs/mobile-auth) |
| Deep-link sign-in with PKCE | Google, Apple, GitHub… and email links come back into your app; the code is useless to any other app. | [Sign-in for mobile apps](https://sovaria.in/docs/mobile-auth) |
| Device sessions | Users see where they are signed in and sign a lost phone out. Refresh tokens rotate; a stolen copy ends every session. | [Sign-in for mobile apps](https://sovaria.in/docs/mobile-auth) |
| Push notifications | FCM and APNs with your own credentials; register tokens from the app, send from a function. | [Push notifications](https://sovaria.in/docs/mobile-push) |
| App attestation | Only your genuine app on a real device may use the anon key (Play Integrity, App Attest, DeviceCheck). | [App attestation](https://sovaria.in/docs/mobile-attestation) |

(Diagram: A mobile app talking to Sovaria)

## SDKs

> **Warning:** **Release pending:** the Flutter/Dart, Swift and Kotlin packages are not on pub.dev, a public SwiftPM URL or Maven Central yet. The install lines below are what they will be. Until then, ask for the packages on [the early-access page](/early-access). The JavaScript SDK (`@sovaria/sdk`, React Native and Expo included) is on npm today.

- **Flutter / Dart**: `sovaria` (pub.dev, release pending). Guide: [Flutter quickstart](https://sovaria.in/docs/mobile-flutter). Reference: [Dart SDK](https://sovaria.in/docs/dart-reference).
- **React Native / Expo**: the JavaScript SDK (`@sovaria/sdk`): sessions in the keychain, native provider sign-in with PKCE, native push tokens — [Expo and React Native](https://sovaria.in/docs/mobile-expo).
- **Swift and Kotlin**: native SDKs with the same features as Flutter (sign-in with deep links and PKCE, data, collections, storage, realtime, offline, push, attestation, crash reports). Guides: [iOS quickstart (Swift)](https://sovaria.in/docs/mobile-swift), [Android quickstart (Kotlin)](https://sovaria.in/docs/mobile-kotlin). References: [Swift SDK](https://sovaria.in/docs/swift-reference), [Kotlin SDK](https://sovaria.in/docs/kotlin-reference).

## Register an app in the console

1. **Add app** — Authentication › Mobile › **Apps** › **Add app**. iOS: **Bundle ID** (Xcode › target › General) and **Team ID** (10 characters, Apple Developer › Membership). Android: **Package name** (`applicationId`) and the **SHA-256 signing certificates** — the app signing key from Play Console › App integrity plus your upload and debug keys from `./gradlew signingReport`, one per line, colons optional.
2. **Add redirect URIs** — Where sign-in may return, matched exactly: your scheme (`com.example.app://auth-callback`, at least three letters) or an https link. `http`, `javascript`, `data`, `file`, wildcards and `#fragments` are refused, and these redirects always use PKCE.
3. **Set up the app** — **Set up** downloads `sovaria-config.json` (project URL, anon key, the app’s identifiers and redirect) and shows the Flutter or React Native snippet with your values filled in.
4. **Turn on deep links** — The **Deep links** panel shows the `apple-app-site-association` and `assetlinks.json` URLs Sovaria serves for you. iOS: add `applinks:<ref>.sovarias.in` to Associated Domains. Android: an intent filter with `android:autoVerify="true"` for that host and the `/auth/v1/app-callback` path.

**Edit** changes any of these with the same checks. **Remove** stops the app’s redirects at once, its deep links stop opening it and attestation for it fails.

## Plans

|  | Free | Pro | Ultra | Team | Enterprise |
|---|---|---|---|---|---|
| Mobile apps per project | 2 | 10 | 20 | 50 | 100 |
| Monthly push notifications | 5,000 | 100,000 | 500,000 | 5,000,000 | 100,000,000 |
| Devices one push send may reach | 500 | 2,000 | 5,000 | 10,000 | 20,000 |
| App attestation (Play Integrity, App Attest, DeviceCheck) | — | ✓ | ✓ | ✓ | ✓ |

Current limits for your organization are on [Plan limits](https://sovaria.in/docs/plan-limits) and in the console under Billing.
