expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
22 lines (20 loc) • 885 B
text/typescript
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;
}