An android app that demonstrates Snapchat's Login kit integration with Jetpack compose
- To try out this sample app, you need to use Android Studio Arctic Fox.
- You can clone this repository.
- Add your
client id
from Snapkit Developer Portal inside strings.xml
<string name="snapchat_client_id">Your client id</string>
- Make sure to change project name in
AndroidManifest.xml
<application ...>
...
<meta-data
android:name="com.snapchat.kit.sdk.redirectUrl"
android:value="loginkitsample://snap-kit/oauth2" />
<activity
android:name="com.snapchat.kit.sdk.SnapKitActivity"
android:launchMode="singleTask"
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" />
<data
android:host="snap-kit"
android:path="/oauth2"
android:scheme="your app name />
</intent-filter>
</activity>
...
</application>