🤖
Android
  • Chat SDK Android
  • Getting Started
    • Chat SDK Quickstart
    • Add the Chat SDK to a Firebase app
    • Add the Chat SDK to a non-Firebase app
  • Setup
    • Add Chat SDK to your project
    • Firebase Setup
    • Chat SDK Initialization
    • Set the Chat SDK Theme
    • Enable Location Messages
    • Authentication Screen
    • Add Additional Modules
    • Module Configuration
    • Proguard
  • API
    • Overriding Activities and Fragments
    • Events
    • Theming
    • Customizing the Icons
    • Tab Customization
    • Add a Chat Option
    • Message Customization
    • Integrating Chat SDK User profiles with your app
    • Overriding the Push Notification Handler
    • Handling Structured Meta Data
  • Chat SDK v4
    • Development Guide
    • Updating from v4 to v5
Powered by GitBook
On this page

Was this helpful?

  1. Setup

Authentication Screen

Built in Login Screen

If you would like to use the Chat SDK default authentication screen you should add the following to your AndroidManifest.xml:

<activity android:name="sdk.chat.ui.activities.SplashScreenActivity">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

Or if you want to launch the activity manually, you can do it using:

ChatSDK.ui().startSplashScreenActivity(context);

This will show the splash screen activity. The app will try to authenticate. If it succeeds it will launch the MainActivity. If it fails, it will launch the LoginActivity.

PreviousEnable Location MessagesNextAdd Additional Modules

Last updated 4 years ago

Was this helpful?