Bionic Docs

Android quickstart

Install the Kotlin SDK preview, associate an Android App Link and receive your own backend’s session.

Native preview
  1. Download the Kotlin preview from your verified test app. Extract the archive and install the included native server adapter on your backend.
  2. Open client/ in Android Studio. The Gradle project includes :core, :sdk and :sample. Use JDK 17, Gradle 8.11.1 and Android SDK 35. The sample requires Android 12 or later.
  3. 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.
  4. Configure the sample manifest's verified intent filter for that return host and path. Serve /.well-known/assetlinks.json on the return host with your package name and signing fingerprint. Use HTTPS on port 443. Follow client/docs/APP-LINKS.md and verify the installed package's domain before starting sign-in.
  5. In your app, create the client using AndroidNativeLogin.create and decode your backend's session format. Start with signIn(). Forward matching HTTPS intents from both onCreate and onNewIntent to acceptReturn. Use resume() for an interrupted attempt. The full example is in client/sample/.
  6. 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.