Skip to main content
This article explains how to set up a Deep Link for redirecting Android players from the checkout back to your app. To configure a Deep Link:
  1. To enable deep linking, declare a custom URL scheme in your AndroidManifest.xml file. Locate the activity that handles your store or game logic, and add the following intent filter inside it:
    xml
    <!-- Custom scheme -->
    <intent-filter android:autoVerify="true">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="{PREFIX_GAME_NAME}"/>
        <data android:host="action"/>
        <data android:scheme="https"/>
    </intent-filter>
    
  2. This intent filter defines your deep link as {PREFIX_GAME_NAME}://action. For example, if your game name prefix is my-awesome-company, and your game name is royal-blast, your deep link will look like this:
    my-awesome-company-royal-blast://action
    
When a purchase is completed, this link redirects the player back to your app’s activity associated with that scheme.