@amazon-devices/expo-notifications provides an API to display, dismiss and list local notifications.
This is a system-deployed library and is available to React Native for Vega apps without a separate installation process. It is deployed as an autolinking library which your app links to at runtime. Compatibility is guaranteed only between the library and the version of React Native for Vega for which it is built.
Installation
-
Add the JavaScript library dependency in the
package.jsonfile. -
Reinstall dependencies using
npm installcommand. -
Update your
manifest.tomlfile. -
Rebuild your application with the
npm run build:appcommand
Examples
Example of scheduling, listing, and dismissing local notifications:API reference
Check out the dedicated documentation page for info about this library, API reference and more: Official Expo documentation for expo-notifications. Note that this documentation applies to all platforms and includes methods that are not supported on Vega.Methods
Hooks
Implementaiton details
The library currently doesn’t work on the Vega Virtual Device. Push notifications, triggers for local notifications and app badges aren’t supported on Vega. List of supported methods:scheduleNotificationAsyncgetPresentedNotificationsAsyncdismissNotificationAsyncdismissAllNotificationsAsync
scheduleNotificationAsync when the notification is being set, instead of being created ahead of time like on Android. For this reason any Channel-related methods in @amazon-devices/expo-notifications are not implemented.

