UNPKG

expo-notifications

Version:

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

14 lines (12 loc) 567 B
import { NotificationChannelGroup } from './NotificationChannelGroupManager.types'; /** * Fetches information about all known notification channel groups. * @return A Promise which resoles to an array of channel groups. On platforms that do not support notification channel groups, * it will always resolve to an empty array. * @platform android * @header channels */ export async function getNotificationChannelGroupsAsync(): Promise<NotificationChannelGroup[]> { console.debug('Notification channels feature is only supported on Android.'); return []; }