# Managing Notifications

### In-app notifications

Enable or disable in-app notifications when a new reply arrives:

{% code title="Kotlin" %}

```kotlin
RepliesKmp.setInAppNotificationsEnabled(true)
```

{% endcode %}

### In-app notification sound (Android)

On Android, enable or disable sound for in-app reply notifications:

{% code title="Kotlin" %}

```kotlin
RepliesKmp.setInAppNotificationSound(true)
```

{% endcode %}

No-op on iOS.

### Push notifications (Android)

**Registration token**

Set the FCM token so the backend can send push notifications for new replies:

{% code title="Kotlin" %}

```kotlin
RepliesKmp.setPushNotificationRegistrationToken(fcmToken)
```

{% endcode %}

**Showing a notification from payload**

When you receive a push payload for a reply, pass it to the SDK to show the notification:

{% code title="Kotlin" %}

```kotlin
RepliesKmp.showNotification(data)  // data: Map<String, String>
```

{% endcode %}

**Notification icon and channel**

{% code title="Kotlin" %}

```kotlin
RepliesKmp.setNotificationIcon(R.drawable.ic_notification)
RepliesKmp.setPushNotificationChannelId("luciq_replies")
RepliesKmp.setSystemReplyNotificationSoundEnabled(true)
```

{% endcode %}

All of the above are Android-only; they are no-ops on iOS.
