Deep Linking Support (Optional)

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.

This “Deep Linking” feature is optional, but you will need to implement Deep Linking if you are working directly with Skillz on user acquisition.

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 in Step 5 here.

Objective-C

For native Objective-C games, Deep Linking requires the following methods to be overwritten in your implementation of SkillzDelegate for standard games and SkillzTurnBasedDelegate for turn based games:

skillzWillLaunch

This method will be called before Skillz launches and provides and 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];

Finally, in your game's implementation of UIApplicationDelegate you will need to add the following method:

- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation
{
    return YES;
}

Unity 

Our Unity Cross-Platform SDK provides deep linking support and does not require any steps to implement for Unity games.

Android

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