Enatega uses Push Notification Tool — Expo for push notification services. Below you will find how to configure push notification services for an Expo project integrated with EAS (Expo App Studio) Build.
Prerequisites
- Expo project built with EAS Build
- User authentication implemented
- Development device for testing (Android or iOS)
Installation
1.1.
Add Libraries
Run
expo install expo-notifications expo-device expo-constants
to add the necessary libraries.
1.2.
Implement Notification Receiving
Add code to request permissions, register for notifications, and handle received notifications.
1.3.
Configure Project ID
Retrieve the project ID from Constants to associate notification tokens.
Credential Setup
1.4.
Configure Firebase (Android)
Create a Firebase project, add app details, and place Google Services file. Restrict API key as required
1.5.
Upload Server Key (All Platforms)
Obtain the server key from Firebase and upload to the Expo credentials service.
Testing Notifications
1.6.
Create Development Build
Rebuild with expo build:android / expo build:ios to generate credentials.
1.7.
Test Notifications
Try sending test notifications from the Expo tool or your backend.