iOS Configuration
info
If you are using Expo, you can skip this section.
Setting Up URL Handling for KakaoTalk Login
Refer to the Official Documentation for the required KakaoTalk login setup.
Follow the instructions to add KakaoTalk to the app's Allowlist so the app can launch KakaoTalk, and set up a custom URL scheme to return to the service app.
During KakaoTalk login, the service app opens KakaoTalk and the user returns after pressing [Agree and Continue] or cancelling the login.
To complete Kakao login when the user returns from KakaoTalk to the service app, add the following code to AppDelegate.mm.
#import "AppDelegate.h"
#import <React/RCTLinkingManager.h>
#import <RNCKakaoUser/RNCKakaoUserUtil.h>
@implementation AppDelegate
...
// Linking API
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
// Handling logic in this app if the URL scheme is from KakaoTalk.
if([RNCKakaoUserUtil isKakaoTalkLoginUrl:url]) {
return [RNCKakaoUserUtil handleOpenUrl:url];
}
return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options];
}
...
@end
note
For more details or examples using Swift or SceneDelegate, refer to the Official Documentation.