Crossdeck University
Watch — two lines to a live dashboard Film in production
0:00 / 0:00
Lesson 1 of 5 · Get started

Get set up

Install the SDK and send your first signal. Two lines, and you're watching live data land in your dashboard.

2 min Web · Swift

When you're done: your first verified signal, live on the map.

1 What this is & why it matters

One SDK, then everything else is data

Everything in Crossdeck — identity, entitlements, revenue, errors — rides on one SDK sending verified signals from your app. This first step is the foundation: get the SDK in, initialise it once, and confirm a live signal. Every other lesson builds on this one setup.

2 How to install it

Add the SDK for your platform

On the web it's one package; on iOS it's a Swift Package.

npm install @cross-deck/web
3 How the code works, piece by piece

Initialise once, with your publishable key

Call init once when your app boots. It takes three things: the app ID for this platform, the publishable key from your project's API keys page (safe to ship in client code), and the environment so sandbox traffic never pollutes production. That's the only configuration there is.

import { Crossdeck } from "@cross-deck/web";

Crossdeck.init({
  appId: "app_web_acme01",
  publicKey: "cd_pub_live_xxx",
  environment: "production",
});
4 The green result in your dashboard

Your first verified signal, live

Run your app and open the dashboard. Within seconds the session appears live on the map — that's your first verified signal, and the proof the SDK is wired correctly.

app.cross-deck.com · live
1 active now

A live session just landed on the map — the SDK is sending verified signals. You're set up.

You installed the SDK, initialised it with your publishable key, and confirmed a live signal. That's the foundation for everything else.