UNPKG

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

17 lines (15 loc) 718 B
import { NotificationChannel } from './NotificationChannelManager.types'; /** * Fetches information about a single notification channel. * @param channelId The channel's identifier. * @return A Promise which resolves to the channel object (of type [`NotificationChannel`](#notificationchannel)) or to `null` * if there was no channel 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 getNotificationChannelAsync( channelId: string ): Promise<NotificationChannel | null> { console.debug('Notification channels feature is only supported on Android.'); return null; }