Deep Linking
The Skillz SDK has a feature that allows promotional URLs obtained through ads and emails to link directly into the Skillz interface and perform certain functionality automatically. For instance, a user could click on a URL that would automatically direct the user to the Skillz UI with a promo code pre-entered.
Configuring Deep Linking​
- Unity
- Godot
- iOS
- Android
Unity will automatically add deep linking support on both iOS and Android. No additional steps are required to get deep linking working.
Godot games get deep linking automatically on both platforms. No additional steps are required.
- Android: the Skillz SDK's deep-link activity and its
skillz.comintent filters are merged into your APK from the SDK's own manifest when the export plugin's Gradle build runs. - iOS: the Skillz pod's post-process build phase, which the export plugin adds to the generated Podfile, writes the Skillz URL schemes into your app's
Info.plist, and the SDK handles the incoming URL itself.
You can confirm this on a built app: the iOS Info.plist contains a CFBundleURLTypes entry whose schemes start with skillz.gamelinks., and the APK's merged manifest (open the APK in Android Studio's APK Analyzer, or run aapt dump xmltree <your.apk> AndroidManifest.xml) declares com.skillz.activity.DeepLinkDispatcherActivity.
As with the other platforms, connect the
skillz_will_launchsignal on theSkillzfacade. It fires before the Skillz UI is presented, whether the player tapped your button or a promotional link opened the app, so it is the place to pause music and save state.
For iOS games, Deep Linking is automatically enabled for you as long as you implemented the Skillz run script build-phase as laid out in the iOS SDK Installation Section Add the Skillz Run Script. This assumes you have completed the steps for implementing Single Sign-On, which enables a dependency for deep linking.
We recommend implementing the function skillzWillLaunch in your implementation of SkillzDelegate. This method will be called before Skillz launches, providing the opportunity to clean up any game state and/or de-allocate resources so that the Skillz UI can launch.
Our Android SDK provides deep linking support and does not require any steps to implement for Android games.