Deep Links (iOS)

Deep linking is required for Games You Play (GYP) and optional but recommended for Sports You Watch (SYW) and Tournaments. Deeplinks allow Lucra to route users directly into matchups, onboarding, verification flows, and shared matchup invitations.


πŸ”— Overview

Lucra uses a two-step deep linking integration:

  1. Lucra β†’ Your App Lucra generates an internal deep link (Lucra URL) and asks your app to turn it into a shareable link (your domain, shortened link, QR code, etc.).

  2. Your App β†’ Lucra When a user opens your shared link, your app unpacks it and hands the original Lucra URL back into the SDK, which returns the correct LucraFlow to present.


You must register handleMatchupInviteDeeplink from the LucraClient to receive the matchupId when a user shares the matchup. Use this to construct a shareable URL that routes to your app.

lucraClient.handleMatchupInviteDeeplink { matchupId in
    // Your URL shortener, FireBase Dynamic Link, custom domain, etc.
    await MyDeeplinkService().createShortLink(from: lucraUrl)
}

This is an async function, meaning your shortener service can perform network calls.


When your app receives a shared link (custom URL scheme, universal link, or QR code), you must decode the matchupId from the URL and feed it to the SDK:

If handleDeeplink returns a LucraFlow, your app should present it immediately.


Implement in SceneDelegate or SwiftUI .onOpenURL:

QR Codes

Handle via:

This enables scanning Lucra QR invitations.


🧭 Push Notifications

The LucraSDK can also emit push notifications for deeplinking to specific flows.

See Push Notificationsarrow-up-right for details.


  1. Generate a Lucra deep link by creating a matchup.

  2. Ensure your link shortener returns a public URL.

  3. Tap the link on your device:

    • App should open

    • lucraClient.handleDeeplink(url:) should return a non-nil LucraFlow

    • The flow should immediately present full screen


βœ”οΈ Integration Checklist

Your deep linking integration is now complete.

Last updated