diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f1230..10be6e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelogs +- **[3.0.6]** + - `isKakaoTalkLoginUrl` 에서 SDK가 준비가 되지 않았으면 `false` return 하도록 수정. + - **[3.0.5]** - `3.0.4`에서 잘못 수정된 부분 수정 (regression). diff --git a/ios/RNKakaoLogins/RNKakaoLogins.swift b/ios/RNKakaoLogins/RNKakaoLogins.swift index 3929807..12d54f5 100644 --- a/ios/RNKakaoLogins/RNKakaoLogins.swift +++ b/ios/RNKakaoLogins/RNKakaoLogins.swift @@ -27,7 +27,13 @@ class RNKakaoLogins: NSObject { @objc(isKakaoTalkLoginUrl:) public static func isKakaoTalkLoginUrl(url:URL) -> Bool { - return AuthApi.isKakaoTalkLoginUrl(url) + + let appKey = try? KakaoSDKCommon.shared.appKey(); + + if (appKey != nil) { + return AuthApi.isKakaoTalkLoginUrl(url) + } + return false } @objc(handleOpenUrl:) diff --git a/package.json b/package.json index 6aafb3a..e6a9b1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-seoul/kakao-login", - "version": "3.0.5", + "version": "3.0.6", "description": "React Native Module for Kakao Login", "main": "index.js", "types": "index.d.ts",