Closed williambarreiro closed 3 years ago
Not actually, I changed it in the last commit. Previously I used requestLocationUpdates with a PendingIntent
and BroadcaseReceiver
to delivering the result. But there was a problem with the newest android version (#169) which forced me to use the other method and eliminate the middle men.
As far as I know, there isn't any problem using this method even when we are in the background, because we have a FourgroundService
, this service is responsible for showing the notification and holding the app alive and I moved all the location logics into this service.
I notice that the plugin is using requestLocationUpdates from Google FusedLocationProviderClient. However the method documentation states that this method is suited for the foreground use cases. Isn't it a problem?