+31 (0) 20 760 2040 info@spilgames.com

Spil SDK - Deep Linking

The Spil SDK provides the functionality of Deep Linking. Deep Linking consists of using a URI (uniform resource identifier) that links to either installing the app on the app store or opening the app with a specific function in mind. The Spil Deep Linking is geared towards rewarding the user for clicking on the link, by providing meaningful content inside the game.

The Spil SDK uses the Google Firebase Dynamic Links & Adjust Deeplinking tool under the hood. More information about that can be found here: https://firebase.google.com/docs/dynamic-links/. A Spil Representative would do the setup on Firebase/Adjust side.

In order to integrate Deep Linking you need to do the following steps:

  1. Copy the iOS Framework into your “Plugins/iOS” folder
  2. Enable the associated domains capability in XCode and add the applinks URL as domain, the URL is always in this format applinks:{FIREBASE_APP_CODE}.app.goo.gl, (The app_code can be acquired from your account manager), for adjust the applink is in the following format: applinks:{ADJUST_ID}.adj.st (The adjust id can be acquired from your account manager)
  3. To support iOS < 9 devices also add a new URL Type in the XCode info tab, the URL scheme should be the bundle identifier of the app.

Implementing the reward claiming logic

After you have done these steps use the following code to listen for the callbacks and claim the reward attached to the link:

This code can be used for all the Spil Features that use a reward-token logic.