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

---

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

# Type Alias: FcmConfig

> **FcmConfig** = `object`

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

Configuration for `buildFcmNotification` and `handleFcmMessage`. Call
`setFcmConfig` once at app startup (typically in `index.js` before
`registerComponent`).

## Properties

### defaultChannelId?

> `optional` **defaultChannelId?**: `string`

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

Default channelId used when `notifee_options.android.channelId` is absent.
If this is also absent and the payload has no channelId,
`displayNotification` will throw on Android — same behavior as calling
`displayNotification` without a channel.

---

### defaultPressAction?

> `optional` **defaultPressAction?**: `object`

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

Default pressAction when `notifee_options.android.pressAction` is absent.
Mirrors the existing behavior: `{ id: 'default', launchActivity: 'default' }`.

#### id

> **id**: `string`

#### launchActivity?

> `optional` **launchActivity?**: `string`

---

### fallbackBehavior?

> `optional` **fallbackBehavior?**: `"display"` | `"ignore"`

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

What to do when `remoteMessage.data.notifee_options` is absent or invalid.

- `'display'`: build a minimal notification from `remoteMessage.notification`
  title/body (or `data.title`/`data.body` as a fallback). Uses `defaultChannelId`.
- `'ignore'`: return `null` without displaying anything.

#### Default

```ts
'display';
```

---

### ios?

> `optional` **ios?**: `object`

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

iOS-specific options.

#### suppressForegroundBanner?

> `optional` **suppressForegroundBanner?**: `boolean`

When `true`, foreground notifications delivered via `handleFcmMessage`
are NOT displayed (only events are emitted).

##### Default

```ts
false;
```
