Skip to main content

Expo Configuration

Android - Configure Custom URL Scheme​

Add the following to app.json:

app.json
[
"@react-native-kakao/core",
{
"nativeAppKey": "{{native app key}}",
"android": {
"forwardKakaoLinkIntentFilterToMainActivity": true
}
}
],

This adds an intent-filter to MainActivity so that tapping a KakaoTalk button configured with the app's scheme launches MainActivity.

AndroidManifest.xml
 <activity android:name=".MainActivity" ...>
...
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="kakaolink" android:scheme="kakao{{kakao app key}}"/>
</intent-filter>
</activity>