Skip to content

Horizon733/snap-loginkit-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snap Login kit Sample

An android app that demonstrates Snapchat's Login kit integration with Jetpack compose

💻 Requirements


🧬 Sample

Project Sample
Android app that demonstrates use of Snapkit's Login kit with new Jetpack Compose and latest Android Studio version.

What it does?

• Login
• Logout
• Jetpack compose UI
• Light theme
• Lifecycle and Stateful
• No XML

Login kit sample demo

Intructions

<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>

About

An android app that demonstrates Snapchat's Login kit integration with Jetpack compose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages