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

11 lines (8 loc) 367 B
import { NativeModule } from 'expo-modules-core'; export type PushTokenManagerModuleEvents = { onDevicePushToken: (params: { devicePushToken: string }) => void; }; export class PushTokenManagerModule extends NativeModule<PushTokenManagerModuleEvents> { getDevicePushTokenAsync?: () => Promise<string>; unregisterForNotificationsAsync?: () => Promise<void>; }