Updated 14 December 2016
When we are using social login in iOS app, if we use Google or Facebook in our app they will work fine, But if we use both together they get conflict with each other. A method which is written first, that will execute other will not execute.So we have to execute them in a same method in our AppDelegate.m class. Here is the code:-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation ]; // Add any custom logic here. handled= [[GIDSignIn sharedInstance] handleURL:url sourceApplication:sourceApplication annotation:annotation]; return handled; } |
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.