I need a way to search for people nearby and send them a push notification. Doesn't seem like I can use topics for this, so probably need a way to query for users?
save users locations in firestore (using geolocator plugin)
get current user location (using geolocator plugin)
Calculate the distance between the user and other users (using geolocator plugin)
Geolocator().distanceBetween();
Put a condition as example if(distance < 200) show users
send a notification to the selected user (Firebase Cloud Messaging)
Sorry I couldn't give more details because they are many questions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With