'I cant run Geolocator.getCurrentPosition() in background (Flutter)

when I try to getCurrentPosition while the application in the background or terminated, it returns

' MissingPluginException(No implementation found for method getCurrentPosition on channel flutter.baseflow.com/geolocator)' https://github.com/Baseflow/flutter-geolocator/issues/1045

Thank you everyone for reading



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source