expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
14 lines (12 loc) • 538 B
text/typescript
import { NotificationChannel } from './NotificationChannelManager.types';
/**
* Fetches information about all known notification channels.
* @return A Promise which resolves to an array of channels. On platforms that do not support notification channels,
* it will always resolve to an empty array.
* @platform android
* @header channels
*/
export default async function getNotificationChannelsAsync(): Promise<NotificationChannel[]> {
console.debug('Notification channels feature is only supported on Android.');
return [];
}