UNPKG

expo-notifications

Version:

Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.

13 lines (10 loc) 480 B
import { isRunningInExpoGo } from 'expo'; let didWarn = false; export const warnOfExpoGoPushUsage = () => { if (__DEV__ && isRunningInExpoGo() && !didWarn) { didWarn = true; console.warn( `expo-notifications: Push notifications (remote notifications) functionality provided by expo-notifications will be removed from Expo Go in SDK 53. Instead, use a development build. Read more at https://docs.expo.dev/develop/development-builds/introduction/.` ); } };