# Deep links for mobile games

> Strait for mobile games: squad invites, reward links and creator links that open the right lobby, keep it through the install, and credit purchases.

Source: https://straitlink.in/solutions/gaming/
Markdown: https://straitlink.in/solutions/gaming.md

## Invite links that drop a friend into the same squad.

Squad invites, reward links and creator links that open the right lobby or screen in your game, and keep it through a store install.

[Start free](https://app.straitlink.in/?signup=1) [Read the Unity guide](https://straitlink.in/guides/unity-deep-linking/)

## Where these links break, and what Strait does

1Squad invites

### The friend installs and lands in the tutorial.

What it costs you

The squad waits, the friend never finds the lobby, and the invite loop breaks.

What Strait does

Keeps the room through the install on Android, so the first launch opens that lobby (iPhone opt-in).

2Creators

### Every creator link looks the same in your numbers.

What it costs you

You can’t tell which creator brought players, so payouts are guesses.

What Strait does

One link per creator, or their name in utm_source: taps, installs and purchases per creator.

3Discord and WhatsApp

### Invites get tapped inside in-app browsers.

What it costs you

The game doesn’t launch from there on its own; the player sees a web page.

What Strait does

Names the in-app browsers it knows and offers a one-tap way out.

## One link, wherever you send it

Every place below runs through the same Strait link, and every tap lands on the screen it points to. Channels are counted on their own, even without UTM tags where the app can be recognised.

**WhatsApp**

Squad and room invites

hilltop.strait.link/squad/7QX

**Creators**

Video descriptions and streams

hilltop.strait.link/c/stream20

**Push**

Daily and comeback rewards

hilltop.strait.link/rewards/daily

**Discord**

Server announcements

hilltop.strait.link/event/finals

**Events**

QR on posters and tables

hilltop.strait.link/event/qr

Links a game sends

## What players tap, and where it should land

### Squad and room invites

Put the room in the destination path, for example `/join/squad-7`. A friend who already has the game lands in that lobby; a friend who installs from the invite lands there on the first launch.

### Reward and comeback links

A link in a newsletter or an SMS opens the reward screen. Give it an expiry so it stops when the event ends, and grant the reward on your server once per player: a link points at a reward, it is not the reward.

### Creator and streamer links

Give each creator their own link, or the same link with their name in `utm_source`. Analytics then shows taps, installs and in-game purchases per creator.

### Event posters and esports nights

Each poster or table card can be a QR code from its own link, so you know which venue brought players in.

After the install

## The invite survives the store

Most invites go to people who don’t have the game yet. On Android, a tap that goes to Google Play carries the invite in the Play install referrer, and the SDK reads it on the first launch: an exact match, no guessing. On iPhone, the first launch is matched to the tap with a short-lived install match, which is opt-in and proven on iPhone simulators so far.

When the match can’t be made, the game opens normally. Keep a manual way in, such as a room code a player can type, so an invite never becomes a dead end.

Engines and SDKs

## Unity, native Android and cross-platform games

### Unity

A C# library reads the launch link with `Client.Start(Application.absoluteURL)` and later links with `Client.HandleUrl(url)`. The library is tested in CI; the Unity glue has not yet been run in the Unity editor or on a device, so check it on a phone before you ship.

### Android (Kotlin)

The Android SDK handles verified App Links and the install referrer for games built natively.

### React Native and Flutter

For games and companion apps built with these frameworks, the same `onLink` callback covers launch links, links while running and the first open after install.

### Purchases on the right invite

Send in-game purchases as events with a value and currency. The SDK attaches the most recent link tap from the last 7 days, so spending is credited to the invite or creator that brought the player.

Where invites travel

## Discord, WhatsApp and YouTube descriptions

Gamers share invites in Discord servers, WhatsApp groups and video descriptions. Some of those apps open links in their own browser, which usually can’t launch a game on its own. We detect the in-app browsers we know and offer a one-tap way out; the [Discord page](https://straitlink.in/open-app-from/discord/) shows what happens there, step by step.

Players watching on a PC get the link’s desktop address, which can be your game’s web page or its store listing, rather than an error.

Setup

## Ship invites in a sprint

### Declare your link domain

Add the Android intent filters and the iOS associated domain to your build. The Unity guide shows a post-build script for the Xcode side.

### Verify the files

Run the free checkers on your link domain so App Links and Universal Links open the game directly.

### Route paths to scenes

Map `/join/…`, `/reward/…` and anything else you send to a scene or screen, and show a loading state while a link resolves.

### Test the cold install

Uninstall, tap an invite, install from the store, launch. The game should open in the squad. Our test plan post lists the cases.

Go further

## Docs and free tools for game teams

- [Unity SDK The C# library, storage, device fields and events](https://straitlink.in/docs/sdks/unity/)
- [Deferred deep links How an invite survives the install](https://straitlink.in/docs/deferred-deep-linking/)
- [Check your App Links setup assetlinks.json and apple-app-site-association](https://straitlink.in/tools/app-links-checker/)
- [UTM builder for app links Tag each creator and campaign](https://straitlink.in/tools/utm-builder/)
- [Android test plan Every case to try on a real phone](https://straitlink.in/blog/android-deep-link-test-plan-real-phone/)

## Set it up once

Production setup is about a day of developer work plus one app release. After that, links come from the dashboard or your own systems.

- [1Add the SDK React Native, Flutter, iOS, Android, Unity or web, from GitHub.](https://straitlink.in/docs/sdks/)
- [2Verify your links App Links and Universal Links on your workspace domain.](https://straitlink.in/docs/app-links/)
- [3Make links In the dashboard, or from your server with the API.](https://straitlink.in/docs/short-links/)

**With AI** · one prompt

Paste one prompt into your AI coding assistant and it adds the SDK, the link handling and the checks, then you test on a real phone.

```
strait. onLink  { event  in  router. open ( event.path )  }
```

[Get the prompt for your platform](https://straitlink.in/ai/)

## Try it on your next invite.

Free for 25,000 taps a month, no card. Paid plans are priced by taps, not by players.

[Start free](https://app.straitlink.in/?signup=1) [Read the quick start](https://straitlink.in/docs/quick-start/)
