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:
1
<activity android:name="sdk.chat.ui.activities.SplashScreenActivity">
2
<intent-filter>
3
<action android:name="android.intent.action.MAIN" />
4
<category android:name="android.intent.category.LAUNCHER" />
5
</intent-filter>
6
</activity>
Copied!
Or if you want to launch the activity manually, you can do it using:
1
ChatSDK.ui().startSplashScreenActivity(context);
Copied!
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.
Last modified 10mo ago
Copy link