[**react-native-notify-kit**](react-native/reference/index)

---

[react-native-notify-kit](react-native/reference/index) / AndroidForegroundServiceBehavior

# Enumeration: AndroidForegroundServiceBehavior

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1531](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1531)

Controls the display behavior of foreground service notifications on Android 12+.

Values are aligned with androidx.core.app.NotificationCompat constants:
DEFAULT = NotificationCompat.FOREGROUND_SERVICE_DEFAULT (0)
IMMEDIATE = NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE (1)
DEFERRED = NotificationCompat.FOREGROUND_SERVICE_DEFERRED (2)

Do not change these numeric values without updating the native getter in
NotificationAndroidModel.java.

## Platform

android

## Enumeration Members

### DEFAULT

> **DEFAULT**: `0`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1539](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1539)

Framework default. Equivalent to not calling `setForegroundServiceBehavior()` at all.
On Android 12+, the system may defer display of the foreground service notification
by up to 10 seconds unless an exemption applies.

Corresponds to `NotificationCompat.FOREGROUND_SERVICE_DEFAULT`.

---

### DEFERRED

> **DEFERRED**: `2`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1560](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1560)

The foreground service notification display may be deferred by up to 10 seconds by the
system. This matches the default Android 12+ behavior and the (unintended) behavior of
upstream `@notifee/react-native`.

Corresponds to `NotificationCompat.FOREGROUND_SERVICE_DEFERRED`.

---

### IMMEDIATE

> **IMMEDIATE**: `1`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1551](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1551)

The foreground service notification is shown immediately after the service starts.
Eliminates the 10-second display delay imposed by Android 12+ on foreground service
notifications.

This is the library default when `asForegroundService` is `true` and
`foregroundServiceBehavior` is not explicitly set.

Corresponds to `NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE`.
