UNPKG

expo-notifications

Version:

Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.

18 lines (16 loc) 771 B
import { NotificationChannelGroup } from './NotificationChannelGroupManager.types'; /** * Fetches information about a single notification channel group. * @param groupId The channel group's identifier. * @return A Promise which resolves to the channel group object (of type [`NotificationChannelGroup`](#notificationchannelgroup)) * or to `null` if there was no channel group found for this identifier. On platforms that do not support notification channels, * it will always resolve to `null`. * @platform android * @header channels */ export default async function getNotificationChannelGroupAsync( groupId: string ): Promise<NotificationChannelGroup | null> { console.debug('Notification channels feature is only supported on Android.'); return null; }