Deep Linking Support

The Skillz SDK has a feature that allows promotional URL’s obtained through ads and emails to link directly into the Skillz interface and perform certain functionality automatically. For instance, a user could click on an URL that would automatically direct to the Skillz UI with a promo code pre-entered.

Along with the below changes, you will also need to ensure that you've implemented the Skillz run script build phase, as is laid out here (Step 5).

Android

Our Android SDK provides deep linking support and does not require any steps to implement for Android games.

iOS/Objective-C

For iOS Objective-C games, Deep Linking is automatically implemented for you as long as you implemented the Skillz run script build-phase as laid out above. Although optional, we recommend implementing the function skillzWillLaunch in your implementation of SkillzDelegate. This method will be called before Skillz launches and provides an opportunity to clean up any game state and/or de-allocate resources so that Skillz can launch. 

For example:

- (void) skillzWillLaunch {
    if ([self isInGameState]) {
        [self cleanGameState];
    } else if ([self isInMenuState]) {
        [self cleanMenuState];

Unity 

When you export your game to iOS you will need to follow the above steps to get deep linking working. No additional steps are required to get deep linking working when you export to Android.