Essential Kit Tutorials
DocumentationDownload
Latest(v3)
Latest(v3)
  • Introduction
  • Features Overview
  • Whats new in v3
    • Version 3 vs Version 2
    • Release Notes
    • Upgrade from V2
  • Plugin Overview
    • Settings
    • Folder Structure
    • Installation FAQ
    • Upgrade Guide
  • Features
    • 📒Address Book
      • Setup
      • Usage
      • Testing
      • FAQ
    • App Shortcuts
      • Setup
      • Usage
    • 🆕App Updater
      • Setup
      • Usage
    • 💲Billing Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
        • iOS
        • Android
      • FAQ
    • ☁️Cloud Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🔗Deep Link Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🛠️Utilities (Extras)
      • Usage
    • 💯Game Services
      • Setup
        • iOS
        • Android
      • Usage
      • FAQ
    • 📸Media Services
      • Setup
      • Usage
      • FAQ
    • 📆Native UI
      • Setup
      • Usage
      • FAQ
      • Examples
        • Login Dialog
    • Network Services
      • Setup
      • Usage
      • FAQ
    • ⏰Notification Services
      • Setup
        • iOS
        • Android
      • Usage
      • Examples
        • Nudge to come-back to the game
      • FAQ
    • ⭐Rate My App
      • Setup
      • Usage
      • FAQ
    • 🤝Sharing
      • Setup
      • Usage
        • Message Composer
        • Mail Composer
        • Social Share Composer
        • Share Sheet
      • FAQ
      • Examples
        • Add Attachment Example
    • Task Services
      • Setup
      • Usage
    • 🌏Web View
      • Setup
      • Usage
      • FAQ
      • Examples
        • Loading Pdf File
  • Notes
    • Resolving Android Gradle Build Errors
    • Google Play Services Authentication
    • Target API Level vs Min API Level
    • Handling Refunds for In-App Purchases (Billing Services)
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Features
  2. Deep Link Services

Usage

PreviousAndroidNextTesting

Was this helpful?

Once after you configure the deep links in the , your app is ready to accept the deep links. Your app gets opened if the deep link matches the settings and you can redirect the user to the required page as per the data in the deep link.

Listening to events

You can listen to both Custom Scheme deep links or Universal Deep links from your app by registering to following events

DeepLinkServices.OnCustomSchemeUrlOpen DeepLinkServices.OnUniversalLinkOpen

OnCustomSchemeUrlOpen event will be fired when user clicks on custom scheme deep link. OnUniversalLinkOpen event will be fired when user clicks on a universal deep link.

For the above events you get a instance in the result and a raw url string. From you can get the scheme, host and path for taking the action as required.

private void OnEnable ()
{
    DeepLinkServices.OnCustomSchemeUrlOpen     += OnCustomSchemeUrlOpen;
    DeepLinkServices.OnUniversalLinkOpen       += OnUniversalLinkOpen;
}

private void OnDisable ()
{
    DeepLinkServices.OnCustomSchemeUrlOpen    -= OnCustomSchemeUrlOpen;
    DeepLinkServices.OnUniversalLinkOpen      -= OnUniversalLinkOpen;
}
private void OnCustomSchemeUrlOpen (DeepLinkServicesDynamicLinkOpenResult result)
{
    Debug.Log("Handle deep link : " + result.Url);
}

private void OnUniversalLinkOpen (DeepLinkServicesDynamicLinkOpenResult result)
{
    Debug.Log("Handle deep link : " + result.Url);
}

Once you get the deep link the user clicked, you need to take the user to the exact content defined in the deep link.

🔗
uri
uri
settings