Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is this supports deferred deep linking ? if not how can we use it in cordova? #1057

Open
ersingencturk opened this issue Jul 1, 2015 · 3 comments

Comments

@ersingencturk
Copy link

On Android:

AppLinkData.fetchDeferredAppLinkData(this, 
  new AppLinkData.CompletionHandler() {
     @Override
     public void onDeferredAppLinkDataFetched(AppLinkData appLinkData) {
         // Process app link data
     }
 }
);

On Ios:

// Add Bolts.framework to your project (part of the FB SDK)
#import <Bolts/Bolts.h> 
#import <FBSDKCoreKit/FBSDKCoreKit.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  if (launchOptions[UIApplicationLaunchOptionsURLKey] == nil) {
    [FBSDKAppLinkUtility fetchDeferredAppLink:^(NSURL *url, NSError *error) {
      if (error) {
        NSLog(@"Received error while fetching deferred app link %@", error);
      }
      if (url) {
        [[UIApplication sharedApplication] openURL:url];
      }
    }];
  }
  return YES;
}

see : https://developers.facebook.com/docs/app-ads/deep-linking for details

@ersingencturk ersingencturk changed the title is this supports deffered depp linking ? if not how can we use it in cordova? is this supports deferred deep linking ? if not how can we use it in cordova? Jul 1, 2015
@jeduan
Copy link

jeduan commented Jul 6, 2015

This needs SDK v4 and it's currently not implemented.

@ersingencturk
Copy link
Author

Hi @jeduan thanks for your response.I found there is a pull request for v4 here: #1051

@amrew
Copy link

amrew commented Mar 14, 2016

Hi @ersingencturk , Can you explain how did you solve this please? I don't really understand how to add this feature to my cordova project. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants