onLocationChanged not called on some devices

后端 未结 7 1509
悲哀的现实
悲哀的现实 2020-12-30 01:38

This is a question which has been asked numerous times but I could not find a solution that always works.

I am developing an application using the Fused location pro

7条回答
  •  情歌与酒
    2020-12-30 02:15

    I solved this by setting both parameters, minimum distance and minimum time between updates to 0. As per what I have tested on 2 devices, now onLocationChanged() is being called regularly after requesting for updates.

提交回复
热议问题