👉🏼 Please also refer to the accompanying Github Repository.
For this example, we will create earthquake early-warning (EEW) app using React Native.
The app receives FCM push notifications, and visualizes historic earthquakes from a Firebase realtime database.
The user is registered through Firebase authentication, and the app uses the user location to calculate percieved intensity of an earthquake. This is done by calculating distance to the event and determining the loss in energy of the seismic.
The app also allows setting of country, testing of alarm, and browsing of previous alert events.
Alerts are only made to notify if they result in a user intensity of more than 'Debil' i.e. 'Light'.