Recently, I have developed an app on travelling domain. The aim of this app is to show the user; the path from source to destination. When the user comes in the range of 25 meters range of the destination, the user gets a notification/ an alert stating that the destination is nearby.
What I tried to achieve it: In the onLocationChanged() I kept on for the destination's range & if the user is in the range, the notification/alert will pop-out. However, when the I tested the app, I found out that when I am in the range, the notifications flood the device horribly as the condition of showing the notification/alert is based on the onLocationChanged() ie as location changes, the loop executes the exact same number of times and the user get annoyed by the app.
Also, the app does not work when I search for a different location. It does not show the destination marker. For the first time, the destination marker is seen but later searches do not show the destination marker; I wonder why?!
This problem has bugged me since long time. Please help me on this one!!