@janiscommerce/app-push-notification
Version:
This package will take care of performing the main actions for registration to receive notifications in the foreground and background.
14 lines (12 loc) • 564 B
JavaScript
import NotificationProvider from './NotificationProvider';
import {usePushNotification} from './NotificationContext';
import {setupBackgroundMessageHandler} from './utils/notificationHandlers';
import cancelNotificationsSubscription from './utils/api/cancelNotificationsSubscription';
import setUpdateSubscriptionByTokenRefresh from './utils/api/setUpdateSubscriptionByTokenRefresh';
export {
usePushNotification,
setupBackgroundMessageHandler,
cancelNotificationsSubscription,
setUpdateSubscriptionByTokenRefresh,
};
export default NotificationProvider;