Interface: NativeAndroidChannel

An interface which describes a channel which has been fetched from the device.

Contains additional information which is only available when fetching the channel from the device.

Platform

android

Properties

badge?

optional badge: boolean

Sets whether badges are enabled for the channel.

View the Badges documentation to learn more.

Defaults to true.

This setting cannot be overridden once the channel is created.

Inherited from

AndroidChannel.badge

blocked

blocked: boolean

bypassDnd?

optional bypassDnd: boolean

Sets whether or not notifications posted to this channel can interrupt the user in 'Do Not Disturb' mode.

Defaults to false.

This setting cannot be overridden once the channel is created.

Platform

android API Level >= 29

Inherited from

AndroidChannel.bypassDnd

description?

optional description: string

Sets the user visible description of this channel.

The recommended maximum length is 300 characters; the value may be truncated if it is too long.

This setting can be updated after creation.

Platform

android API Level >= 28

Inherited from

AndroidChannel.description

groupId?

optional groupId: string

Sets what group this channel belongs to. Group information is only used for presentation, not for behavior.

Groups can be created via via createChannelGroup.

This setting cannot be overridden once the channel is created.

Inherited from

AndroidChannel.groupId

id

id: string

The unique channel ID.

Inherited from

AndroidChannel.id

importance?

optional importance: AndroidImportance

Sets the level of interruption of this notification channel.

Defaults to AndroidImportance.DEFAULT.

This setting can only be set to a lower importance level once set.

Inherited from

AndroidChannel.importance

lightColor?

optional lightColor: string

If lights are enabled (via lights), sets/overrides the light color for notifications posted to this channel.

This setting cannot be overridden once the channel is created.

Inherited from

AndroidChannel.lightColor

lights?

optional lights: boolean

Sets whether notifications posted to this channel should display notification lights, on devices that support that feature.

Defaults to true.

This setting cannot be overridden once the channel is created.

Inherited from

AndroidChannel.lights

name

name: string

The channel name. This is shown to the user so must be descriptive and relate to the notifications which will be delivered under this channel.

This setting can be updated after creation.

Inherited from

AndroidChannel.name

sound?

optional sound: string

Overrides the sound the notification is displayed with.

The default value is to play no sound. To play the default system sound use 'default'.

This setting cannot be overridden once the channel is created.

Inherited from

AndroidChannel.sound

soundURI?

optional soundURI: string

The URI of the notification sound associated with the channel, if any.

This is a read-only value, and is under user control after the channel is created

Inherited from

AndroidChannel.soundURI

vibration?

optional vibration: boolean

Sets whether notification posted to this channel should vibrate.

Defaults to true.

This setting cannot be overridden once the channel is created.

Inherited from

AndroidChannel.vibration

vibrationPattern?

optional vibrationPattern: number[]

Sets/overrides the vibration pattern for notifications posted to this channel.

The pattern in milliseconds. Must be an even amount of numbers.

This setting cannot be overridden once the channel is created.

visibility?

optional visibility: AndroidVisibility

Sets whether notifications posted to this channel appear on the lockscreen or not, and if so, whether they appear in a redacted form.

Defaults to AndroidVisibility.PRIVATE.

This setting cannot be overridden once the channel is created.

Inherited from

AndroidChannel.visibility