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 will inject an intent-filter into MainActivity to execute MainActivity when a button with the app schema set by KakaoTalk is pressed.

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>