-
Notifications
You must be signed in to change notification settings - Fork 70
Location Provider keeps showing after HIGH_POWER updates are removed #213
Comments
cc @sarahlensing |
Thanks for the write up @tobrun! We'll look into this today. |
This is a side-effect of code we overlooked when we migrated Lost to support multiple clients. We are currently pretty aggressive when it comes to requesting updates (we request them with the highest frequency among all client requests) and we don't remove them in cases like above (see reference). I'll circle back to implementing a fix for this in a couple days (after we get an upcoming Android SDK release out). Thanks for the clear issue! |
@sarahlensing @msmollin Thank you for the quick 👀 and update on this issue. Are there any workarounds that we could use on our end meanwhile to remove those location requests? |
@zugaldia You could disconnect and reconnect the NO_POWER client when the HIGH_POWER one disconnects |
@sarahlensing seeing the same behaviour with that in place. |
A quick look at the logic in |
@tobrun When you "disconnect and reconnect" the NO_POWER client are you removing location updates requested by that client? So, something like this:
@ecgreb I'm going down the path of splitting |
@sarahlensing sounds good! |
@sarahlensing looks like you've identified the root issue, happy to help test a potential fix. Re. the workaround, while this could resolve the issue within our SDK, it will not resolve the issue of an end developer using his own LOST client. |
Initial tests aren't showing the issue in OP, with mapbox/mapbox-gl-native#9142 we're addressing the issue, we'd like to do a release candidate to verify the issues is no longer present and help our devs verify it on their end, do you have any plans for a patch release that we could include? |
Great! A patch release is planned for the beginning of next week. |
3.0.1 release is out https://github.com/mapzen/lost/releases/tag/lost-3.0.1 Thanks for everyone's help and patience |
Description
Location provider icon in status bar keeps showing after removing HIGH_POWER location updates while using two lost api clients.
Steps to Reproduce
Have 2 components with each one lost api client. The first component is started when the application is created and requests NO_POWER updates as long as the application lives. The second component is started for a specific activity and requests HIGH_POWER updates. When that activity is destroyed we remove the location request but the location provider keeps showing. Only killing the application resolves this.
LMK if you need more information.
Lost & Android Version
LOST 3.0.0, Android API 25
The text was updated successfully, but these errors were encountered: