IOS - UIApplicationDelegate Issue

    On iOS 9 and above, if UIApplicationDelegate's application:openURL:options:is implemented, application:openURL:sourceApplication:annotation: will not get called.

    Call FBSDKApplicationDelegate's application:openURL:sourceApplication:annotation: from UIApplicationDelegate's application:openURL:options:

    - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options {
        return [[FBSDKApplicationDelegate sharedInstance] application:app
                                                          openURL:url
                                                sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
                                                       annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
    }
    

    Tegan Tang

    Read more posts by this author.

    Kuala Lumpur, Malaysia