Push Notifications - GrasspIt/GrasspReactNativeDriverApp GitHub Wiki
Push notifications are handled in the DashboardScreen in this app.
If the driver grants permissions to send push notifications, Expo generates a push token for the user's device.
This push token is sent to the Grassp API. The token is then used to send push notifications through the Expo API to the user's device.
The driver will receive a push notification for each new order.
If the the driver presses the notification, a notificationListener is triggered and navigates to the OrderListScreen to view all current orders.