In react native app I want to implement a feature in which any employee whenever completes a certain task then reporting person should get notified eg. Site visit, the employee checked in the app, etc.
So please guide me How to implement this feature and which package should I use?
What I found till now
- FCM
- react-native-notifications
- react-native-in-app-notification
As you are using a real-time database, write a listener which dispatches an event with some payload data every time an employee accomplishes a task.
In this context, any local notification package can push local a notification for each event dispatched.
I recommend https://notifee.app/ for Local notification, It has easy API and more notification-related features.
In case you favor cloud over local notification. You should review https://docs.wonderpush.com/docs/mobile-push-notifications-react-native. They have an easier-to-use API for pushing and receiving notifications.