# In-App Notification
This guide explains how to implement and configure In-App Notifications in your mobile application using the User.com Mobile SDK. In-App Notifications allow you to display customized messages to your users directly within your application, without requiring them to check their notification center.
INFO
In-App Notifications are powered by Firebase Cloud Messaging(FCM) but fully styled and configured through your User.com Panel, giving you complete control over appearance and targeting.
# Receiving a Notification
User.com In-App Notifications are sent through a Firebase service and are received on the device as a fully styled notification.
For SDK to display In-App messages, you need to implement UserCom.getInstance().onNotification()
method and use at least version 1.2.8
of the SDK.
SDK will handle only messages that include user_com_notification
key in their payload.
- Kotlin
- Java
class YourFirebaseMessagingService : FirebaseMessagingService() {
override fun onMessageReceived(remoteMessage: RemoteMessage) {
super.onMessageReceived(remoteMessage)
// Check if message contains a data payload
if (remoteMessage.data.isNotEmpty()) {
// Pass the notification data to UserCom SDK
UserCom.getInstance().onNotification(remoteMessage.data)
}
}
}
# Font Resolver
You can use custom Fonts to better style your notification. However, you have to make sure the Font Name provided in the User.com panel matches your font file name in your Mobile App.
# Useful links
Read more about Push Notifications: