Hi,
How do i fix this or declare the second method differently such that it still works.

It works if i remove code for Facebook SDK code, but i need both
Thanks.
I would check first if facebooksdk return YES, otherwise return Google method
This is what I did:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
if( [url.absoluteString rangeOfString: @"com.googleusercontent.apps" ].location != NSNotFound ) {
return [RNGoogleSignin application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}
return [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation];
}
So just check if the returned string contains google url, if not then continue to facebook
Most helpful comment
This is what I did:
So just check if the returned string contains google url, if not then continue to facebook