I am working on an app that has an iPhone version as well as an Android version.
My goal is...
My question is...
To make my question more clear...
Thanks and best regards
Locate friends on the Find My Friends App with any phone. The App works with iPhones, Android Phones, BlackBerry phones, and even non-Smartphones. Just install the App on all the phones that you want to be tracked.
In iOS 13 or later, use the Find My app instead, or the Find People app on watchOS 6 or later. If you have iOS 13, iPadOS, or macOS Catalina or later, the Find My app combines Find My iPhone and Find My Friends into a single app. Set up the Find My app and turn on Find My [device] to get started.
Find My Friends is free for Android. (Not to be confused with Apple's own Find My Friends app for iOS.)
Even i had this question on my mind today while creating similar app. Alert when two users/friends are near to each other - Android Proximity
after spending a couple of hours thinking, I thought a better way to do this :
1) Create SharedPreference / DB which holds the last Coordinates of the device which was also updated to the server.
2) Create Service which will fire once in 15 minutes requesting current location.
3) If the current location matches the Last Location retrieved from the SharedPreference and or around within proximity (depends on how much u give 30ft or more) then user is in the same place so don't upload the coordinates to the server.
4) If the user isn't within proximity or last location doesn't match current location then upload the coordinates to the server.
5) After uploading coordinates to the server, update SharedPreference too..
6) After uploading, return response of Users details from the server who are nearby the same coordinates. The User will then get notified if someone around them..
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