expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
16 lines (14 loc) • 579 B
text/typescript
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 default async function getNotificationChannelGroupsAsync(): Promise<
NotificationChannelGroup[]
> {
console.debug('Notification channels feature is only supported on Android.');
return [];
}