The Sceyt Chat Android UIKit integrates with Firebase Cloud Messaging (FCM) through a thin delegate layer,Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sceyt/sceyt-chat-android-uikit/llms.txt
Use this file to discover all available pages before exploring further.
FirebaseMessagingDelegate. You forward token registration and incoming messages to the delegate, and the UIKit takes care of parsing push payloads, triggering the notification display pipeline, and registering or deregistering the device with the Sceyt platform.
Prerequisites
Before wiring up the delegate, make sure:- A Firebase project exists and your app is registered inside it.
google-services.jsonis placed in your app module root (app/google-services.json).- The
com.google.gms.google-servicesplugin is applied in your build scripts. FirebaseMessagingService(or a subclass) is declared inAndroidManifest.xml.
Registering a Token
Whenever FCM delivers a new registration token callFirebaseMessagingDelegate.registerFirebaseToken(token) from inside your service’s onNewToken callback. The delegate wraps the token in a PushDevice with PushServiceType.Fcm and forwards it to the Sceyt platform so the server can target the device.
Handling Incoming Messages
When FCM delivers a data message, callFirebaseMessagingDelegate.handleRemoteMessage(remoteMessage). If the message belongs to Sceyt Chat, the delegate parses it and hands the payload to the UIKit notification pipeline, then returns the parsed PushData. For non-Sceyt messages it returns null so you can handle them yourself.
Use FirebaseMessagingDelegate.isChatPushNotification(remoteMessage) to check ownership without fully processing the message — useful when you need to branch logic early.
Unregistering on Logout
When the user logs out, callFirebaseMessagingDelegate.unregisterFirebaseToken() to deregister the device from the Sceyt platform so the user no longer receives push notifications. You can also call the higher-level SceytChatUIKit.logOut(), which performs the unregistration internally before clearing user state.
unregisterFirebaseToken accepts an optional (Result<Boolean>) -> Unit callback. When using SceytChatUIKit.logOut(unregisterPushCallback), the same callback is wired through.Push Notification Configuration
Fine-grained push behaviour — such as enabling/disabling push globally, suppressing notifications while the app is in the foreground, or filtering which pushes produce a visible notification — is controlled throughSceytChatUIKit.config.notificationConfig, which exposes a PushNotificationConfig object.