Hi, I found Try This solution,
We must implement PendingIntent and Location Manager. The location manager receives the user's current location, and when the user enters a region, he will dismiss the pending code snippet as follows:
addProximityAlert, in which we can set the area (radius for tracking users) here is more detailed information about the addProximityAlert method.
source share