Follow

Deferred Deep Linking with Facebook SDK

To redeem TROPHiT vouchers on the client-side, using Facebook Deferred Deep Linking feature, simply invoke TROPHiT's Deep Link Redemption from within Facebook's Deferred Deep Link handler, which is triggered by fetchDeferredAppLink. See the Integration Assistant in your TROPHiT dashboard for more details.

Example:

+ (void) onFetchedDeferredAppLink:(NSURL*)url error:(NSError*)error {

    if (url == nil) return;
    [[TrophitAttributionHandler instance]
     redeemForDeepLink:url
     withMethod:TrophitRedeemMethodQuick
     enable:^NSArray *(NSDictionary *app, NSDictionary *device) {
         return [self onTrophitRedeemForApp:app device:device];
     }
      complete:nil
      failure:^(NSError *error) {
         NSLog(@"%@", error);
     }];

}

 

0 Comments

Please sign in to leave a comment.
Powered by Zendesk