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

16 lines 753 B
import { isRunningInExpoGo } from 'expo'; import { Platform } from 'expo-modules-core'; let didWarn = false; export const warnOfExpoGoPushUsage = () => { if (__DEV__ && isRunningInExpoGo() && !didWarn) { didWarn = true; const message = `expo-notifications: Android Push notifications (remote notifications) functionality provided by expo-notifications was removed from Expo Go with the release of SDK 53. Use a development build instead of Expo Go. Read more at https://docs.expo.dev/develop/development-builds/introduction/.`; if (Platform.OS === 'android') { console.error(message); } else { console.warn(message); } } }; //# sourceMappingURL=warnOfExpoGoPushUsage.js.map