LocationCallback not getting called

后端 未结 5 1159
醉酒成梦
醉酒成梦 2021-01-07 18:18

I am making a location request using FusedLocationProviderClient. I have kept a timer for 30 seconds to check if location is received within that timeframe.

5条回答
  •  广开言路
    2021-01-07 18:55

    I was facing this same issue. In my case the device-location method/accuracy was set to Phone only rather than High accuracy or Battery saving. Change the settings to High accuracy and receive callbacks on locationCallback.

提交回复
热议问题