Comments (6)
iOS
공식문서 - 개발 프로젝트 설정 을 참고하여 info.plist
의 아래NATIVE_APP_KEY
문구를 잘 확인하시여 본인의 Kakao App Key로 변경해주세요.
+ <key>KAKAO_APP_KEY</key>
+ <string>{NATIVE_APP_KEY}</string>
AppDelegate.m (++ 된 부분 추가)
#import "WithKakaoSDK.h"
- (BOOL)application:(UIApplication *)app
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
...
++ if ([WithKakaoSDK isKakaoTalkLoginUrl:url]) return [WithKakaoSDK handleOpenUrl:url];
[[FBSDKApplicationDelegate sharedInstance] application:app
openURL:url
options:options];
...
return NO;
}
위 내용을 추가하셨는지 확인 부탁드립니다.
from react-kakaosdk.
�해당 KAKAO_APP_KEY 부분은 추가를 하였고 AppDelegate.m은 모듈을 설치하고 나니
- (BOOL) application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
if ([WithKakaoSDK isKakaoTalkLoginUrl:url]) return [WithKakaoSDK handleOpenUrl:url];
return YES;
}
이 내용이 추가가 되어 있어서 따로 수정을 하지 않았는데 따로 수정을 진행을 해야 하나요??
from react-kakaosdk.
첨부해주신 코드를 보니 async await를 사용하신 것 같은데 then으로 다시 처리한 이유가 있으실까요? 앱으로 돌아왔다면 모듈은 정상적으로 작동한 것으로 보입니다.
await KakaoSDK.init(kakaoKey)
const tokens = await KakaoSDK.login()
.then((result) => {
console.log(Login Finished:${JSON.stringify(result)});
resolve(true)
}).catch((error) => {
console.log(Login Cancelled:${error});
resolve(false)
해당 코드를
try {
await KakaoSDK.init()
const tokens = await KakaoSDK.login().
console.log(tokens)
} catch (e) {
console.warn(e)
}
로 확인 부탁드립니다.
from react-kakaosdk.
then으로 처리 했던 부분은 코드를 테스트하기 위해서 예제를 복붙해서 나왔고. 해당 저 부분에 오타가 있었던거 같습니다. 앱으로 전환이 되지 않으며 현재 보내주신 코드를 변경하여 적용해보아도 똑같은 현상이 발생합니다.
from react-kakaosdk.
카카오 로그인 창은 뜨나요??
from react-kakaosdk.
네 해당 창은 뜨고 URL Types에서 URL Schemaes의 키 값에 오타를 수정을 했더니 오류가 해결되었네요 감사합니다.
from react-kakaosdk.
Related Issues (15)
- ios KakaoLogin() 아무것도 반환을 안함 HOT 10
- [IOS] 첫 빌드 오류 HOT 3
- Ios없이 android만 있는 경우 작동안합니다.
- react native에서 openChannelChat 호출시 타입에러 나는 현상
- getPrifle / getAccessToken시 앱이 꺼져버리는데 이유가있을까요 ?? HOT 3
- 리액트네이티브 키를 바꾸는 경우
- KakaoSDK 버전업은 언제쯤 될까요?
- Stored properties cannot be marked potentially unavailable with '@available
- 일부 계정 로그인 시도할 때 막힘
- RN ios 빌드 시 RNAKakaoSDK interface 에러
- Can't install the library HOT 1
- ios kakaologin이 안됨 HOT 12
- getAccessToken의 AccessTokenType이 Nan과 undefined가 뜹니다. HOT 5
- getAccessToken 에러 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-kakaosdk.