Initialization

This section covers the initialization of the SDK within your iOS application. Import our SDK as dependency.

#import <JYouLoginKit/REDeLoginKit.h>

This code initializes the SDK when your app launches.

[REDeLoginKit initSDKWithProductCode:@"product_code" callback:nil];
[REDeLoginKit configFireBase];

Add the following code to the AppDelegate file in your app project.

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation
{
[REDeLoginKit application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
return YES; }
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
[REDeLoginKit application:application openURL:url options:options];
return YES; }

Last updated