I've got my authentication system setup already for the application (basic signup, login, and log out). I wanted to work on an app that generally display a list of users and the user on the device can pick which user they want to 'Ping' to.
In result, the recipient user would receive the notification of some sort that shows another user has pinged them (only while using the app).
My initial thoughts/ideas are:
Once a user is signed up: their data such as Full Name, Email, UID, (Password??) would be stored in the Firebase Real Time database system. (I also plan to allow users to setup their own profile image on the profile home screen, which their image could perhaps be stored in the database too?)
Another screen to display a list of users registered with the app. (I plan to use some additional technology to help the app identify only close proximity users in this list, *but for now let's say there is a screen showing a simple list of users)
Users then could choose which users they want to ping to (I could use Modal to display this action menu)
My main queries & questions are:
How would I setup a function that would retrieve individual user data say the user's UID (which would initially be stored in the Firebase Database) and send some sort of a message/notification (perhaps in an Alert box etc.) to other user using these data?
If first function works/is possible, how would I setup a function that let's the recipient ping them back (Of course with the ability to choose to dismiss/ignore this Ping notification)?
My last question is, if any of these are possible?
I would greatly appreciate any sort of help, guides, or hints on creating such system. I have only recently just taught myself JavaScript and using the React Native framework, and thought this would be a good little project to start with.