crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
360 stars 136 forks source link

ios KakaoSDK.initSDK 함수에서 customScheme을 수정할 수 있게 해주세요. #366

Closed millo-L closed 1 year ago

millo-L commented 1 year ago

Description

카카오 로그인 멀티 번들 id로 로그인 개발을 진행하는 과정에서 ios의 경우 customScheme 설정이 불가능한 것을 발견했습니다. 아래의 코드와 같이 설정할 수 있게 수정 부탁드립니다.

public override init() {
        let appKey: String? = Bundle.main.object(forInfoDictionaryKey: "KAKAO_APP_KEY") as? String
        let customScheme: String? = Bundle.main.object(forInfoDictionaryKey: "KAKAO_APP_SCHEME") as? String
        if (customScheme != nil) {
            KakaoSDK.initSDK(appKey: appKey!, customScheme: customScheme!)
        } else {
            KakaoSDK.initSDK(appKey: appKey!)
        }
}

Steps to reproduce

  1. ios 멀티 번들id 로그인 개발을 위한 customScheme 변수 설정을 부탁드립니다.

Snack or a link to a repository

https://developers.kakao.com/docs/latest/ko/getting-started/sdk-ios#set-up-plist

React Native Kakao Login version

5.2.6

React Native version

0.71.2

Platforms

iOS

JavaScript runtime

None

Architecture

None

Build type

Release mode

Device

Real device

Device model

No response

Acknowledgements

Yes

hyochan commented 1 year ago

@millo-L 안녕하세요. 좋은지적 감사합니다 혹시 관련해서 PR을 날려주시면 대단히 감사하겠습니다 🙏

millo-L commented 1 year ago

PR 날렸습니다 확인 부탁드립니다 😉