Android quickstart
Install the Kotlin SDK preview, associate an Android App Link and receive your own backend’s session.
Native preview
- Download the Kotlin preview from your verified test app. Extract the archive and install the included native server adapter on your backend.
- Open
client/in Android Studio. The Gradle project includes:core,:sdkand:sample. Use JDK 17, Gradle 8.11.1 and Android SDK 35. The sample requires Android 12 or later. - In the adapter, configure your app ID, signed package name, signing certificate SHA-256 fingerprint and exact HTTPS return URI. Register the hosted browser callback on the backend. The mobile return URI receives the one-time handoff.
- Configure the sample manifest's verified intent filter for that return host and path. Serve
/.well-known/assetlinks.jsonon the return host with your package name and signing fingerprint. Use HTTPS on port 443. Followclient/docs/APP-LINKS.mdand verify the installed package's domain before starting sign-in. - In your app, create the client using
AndroidNativeLogin.createand decode your backend's session format. Start withsignIn(). Forward matching HTTPS intents from bothonCreateandonNewIntenttoacceptReturn. Useresume()for an interrupted attempt. The full example is inclient/sample/. - Complete the hosted sign-in in a Custom Tab and return to the app. Use the returned session to read a protected backend route. Sign out through your own session manager, then repeat the request and confirm it requires authentication.
The SDK stores pending sign-in state. Your app owns session storage, refresh and logout. The client secret belongs on the backend. The library and sample build have been verified. Independent physical-device end-to-end acceptance is pending.