expo-quest-notifications
Version:
A fork of [`expo-notifications`](https://github.com/expo/expo/tree/main/packages/expo-notifications) that provides two implementations: - The default `expo-notifications` for Android and iOS platforms. - A Meta Quest-compatible implementation that uses th
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 [];
}