expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
9 lines • 526 B
JavaScript
import { UnavailabilityError } from 'expo-modules-core';
import NotificationChannelManager from './NotificationChannelManager';
export default async function setNotificationChannelAsync(channelId, channel) {
if (!NotificationChannelManager.setNotificationChannelAsync) {
throw new UnavailabilityError('Notifications', 'setNotificationChannelAsync');
}
return await NotificationChannelManager.setNotificationChannelAsync(channelId, channel);
}
//# sourceMappingURL=setNotificationChannelAsync.android.js.map