본문으로 건너뛰기

Android 설정

정보

Expo를 사용한다면 이 문서는 건너뛰어야 합니다.

Redirect URI 설정​

공식 문서

카카오 로그인을 구현하려면 리다이렉션(Redirection)으로 인가 코드를 받아야 합니다.

이를 위해 AndroidManifest.xml에 액티비티(Activity)를 설정해야 합니다. 아래 예제를 참고합니다.

<activity
android:name="com.kakao.sdk.auth.AuthCodeHandlerActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<!-- Redirect URI: "kakao${NATIVE_APP_KEY}://oauth" -->
<data android:host="oauth"
android:scheme="kakao${NATIVE_APP_KEY}" />
</intent-filter>
</activity>
노트

더 자세한 내용은 공식 문서를 참고하세요.