I am using the Fused Location Provider API to both get current location and to request regular location updates. As far as I can tell, my permissions are configured correctly (both fine and coarse are present in my manifest and checked for and requested at runtime) and the location updates (callbacks) are working as expected. The only odd thing I am noticing are these logcat messages which are appearing at the error level with tags like [LocationManager]
and [FusedLocationAPI]
. They don't appear to be describing exceptions, only reporting the action being performed like adding/removing location updates from my app or doing an asynchronous location update request.
I tried some googling around but can't seem to make any headway on figuring out why I am seeing them and what they are trying to tell me. My best guess so far is based on the presence of the string (10240_FINE_fg_true_foreground)
. Perhaps my location updates are happening in the foreground without proper permission? Currently I am performing all of these actions all withing my main activity (due to the relative simplicity of my app), but should I refactor and put all of my location retrieving code into a separate foreground service and add the requisite permissions?
Here is what I am seeing:
FusedLocation remove updates error Message
Location request error messages
Let me know if it would help to see code where I am invoking the API.