UNPKG

expo-quest-notifications

Version:

A fork of [`expo-notifications`](https://github.com/expo/expo/tree/main/packages/expo-notifications) that provides two implementations: - The default `expo-notifications` for Android and iOS platforms. - A Meta Quest-compatible implementation that uses th

22 lines (20 loc) 885 B
import { NotificationChannelGroup, NotificationChannelGroupInput, } from './NotificationChannelGroupManager.types'; /** * Assigns the channel group configuration to a channel group of a specified name (creating it if need be). * @param groupId The channel group's identifier. * @param group Object representing the channel group configuration. * @return A `Promise` resolving to the object (of type [`NotificationChannelGroup`](#notificationchannelgroup)) * describing the modified channel group or to `null` if the platform does not support notification channels. * @platform android * @header channels */ export default async function setNotificationChannelGroupAsync( groupId: string, group: NotificationChannelGroupInput ): Promise<NotificationChannelGroup | null> { console.debug('Notification channels feature is only supported on Android.'); return null; }