Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Swift by registered user itdea ( 10 years ago )
@available(iOS 9.0, *)
    func application(application: UIApplication,
        
        openURL url: NSURL, options: [String: AnyObject]) -> Bool {
            if(url.scheme == "fb650685798402903")
            {
                return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: options["UIApplicationOpenURLOptionsSourceApplicationKey"] as! String, annotation: nil)
            }else
            {
                return GIDSignIn.sharedInstance().handleURL(url,
                    sourceApplication: options[UIApplicationOpenURLOptionsSourceApplicationKey] as? String,
                    annotation: options[UIApplicationOpenURLOptionsAnnotationKey] as? String)
            }
    }
    //OPEN URL
    //  @available(iOS 8.0, *)
    func application(application: UIApplication,
        openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
            
            if(url.scheme == "fb650685798402903")
            {
                return  FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
            }else
            {
                return GIDSignIn.sharedInstance().handleURL(url,
                    sourceApplication: sourceApplication,
                    annotation: annotation)
            }
    }

 

Revise this Paste

Children: 80999
Your Name: Code Language: