yayaa / LocationManager

Simplify getting user's location for Android
806 stars 187 forks source link

keepTracking == True does not respect requiredTimeInterval value #112

Closed zhombie closed 3 years ago

zhombie commented 3 years ago

...DEFINE YOUR ISSUE... requiredTimeInterval as written in code documentation TimeInterval will be used while getting location from default location providers gives an ability to set location update interval, but LocationManager does not consider this value when keepTracking is True.

Configuration

Screenshot 2020-09-26 at 00 13 42

Logs

Screenshot 2020-09-26 at 00 12 52
yayaa commented 3 years ago

Which version of the library are you using? This issue was already raised in #82 and should be solved by this change - could you update the library to the latest version and confirm that issue still exists?

zhombie commented 3 years ago

The last version, 2.4.0. I have already seen this issue, but he did not give clear answer about that the change helped him

zhombie commented 3 years ago

Tested multiple times, method onLocationChanged() is just firing without any waiting, even the time interval is declared in builder

yayaa commented 3 years ago

I have just released the v2.4.1 containing the fix for #116, please give it a try and see that solves the issue you described as well.