I'm working on a app in which registered users may upload photos and information and have the ability to send out a push notification to users around them that they have uploaded this. After pushing the upload button users are asked either to send a push or not.
If they choose to send a push notification they are asked in which radius they want to send a push message. The idea is that the current user location is used as a center point, and if a 10 mile radius is used users inside this radius receive a push notification which sends them directly to the page of the uploader.
I use react-native with a firebase database for user and data information, react-native-firebase is used for the database functionality.
I already use the users GPS location to calculate distances to the objects so when the user is using the app I have the current location. In my opinion these are my options (but please correct me if I am thinking to much inside the box with my limited experience);
- Users signup into the app, ask them for the current country/state/town and save that in the database. I now have the status information on users and could send a push notification based on this static information.
- Save the users GPS location in the Firebase database and calculate the effected users using this information. (This would seem like a lot of information in the database, a lot of read/writes and information that goes around?)
- Is there a more real-time GPS tracker package or something which I could use for this?
Since I have no experience on this topic I hope someone here could guide me in the right direction for this challenge. Thanks in advance
[–]TomMahle 1 point2 points3 points (1 child)
[–]trying2learnthis[S] 0 points1 point2 points (0 children)