diff --git a/app.config.js b/app.config.js index 9060533..4faaae4 100644 --- a/app.config.js +++ b/app.config.js @@ -144,6 +144,8 @@ const config = { "@react-native-kakao/core", { nativeAppKey: process.env.EXPO_PUBLIC_KAKAO_NATIVE_APP_KEY, + ios: { handleKakaoOpenUrl: true }, + android: { authCodeHandlerActivity: true }, }, ], ] diff --git a/ios/semosan/AppDelegate.swift b/ios/semosan/AppDelegate.swift index 135cfa9..723a665 100644 --- a/ios/semosan/AppDelegate.swift +++ b/ios/semosan/AppDelegate.swift @@ -2,6 +2,7 @@ import Expo import FirebaseCore import React import ReactAppDependencyProvider +import RNCKakaoUser @UIApplicationMain public class AppDelegate: ExpoAppDelegate { @@ -42,6 +43,7 @@ FirebaseApp.configure() open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:] ) -> Bool { + if RNCKakaoUserUtil.isKakaoTalkLoginUrl(url) { return RNCKakaoUserUtil.handleOpen(url) } return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options) } diff --git a/ios/semosan/Info.plist b/ios/semosan/Info.plist index a0bca2e..0651e49 100644 --- a/ios/semosan/Info.plist +++ b/ios/semosan/Info.plist @@ -39,11 +39,25 @@ exp+semosan + + CFBundleURLName + Kakao + CFBundleURLSchemes + + kakaoa3e7a28786d646fd2c68b8faf42529fa + + CFBundleVersion 1 ITSAppUsesNonExemptEncryption + LSApplicationQueriesSchemes + + kakaokompassauth + kakaolink + kakaoplus + LSMinimumSystemVersion 12.0 LSRequiresIPhoneOS