Hi, I am developing an application for Android and in my application I wanted to receive a proximity alert for a small location, and this location is a dynamic point. The average list of locations can dynamically change depending on the current location of users.
so I applied proximity alerts in my application, working with inbound and outbound events. But the problem is that if I set the expiration time to -1, it constantly uses GPS, which drains the deviceβs battery.
If I set an expiration time, it will stop searching for this location after the expiration date.
And another question setting up some proximity warnings significantly increases battery consumption?
How to effectively use proximity alerts. Is there a better way to handle this scenario.
Need help .. Thanks ...
source share