flutter-geolocator
flutter-geolocator copied to clipboard
No support on Terminals without Google Play Services
HI, I hope everybody is good!
Im working on point of sale terminal, this terminal doesn't have google play services(GApps), the android is very basic, this plugin sometimes works and sometimes not until the log message appears: com.example.app requires google play services or google play, but it's missing
I/flutter (32689): permission = LocationPermission.whileInUse W/GooglePlayServicesUtil(32689): Google Play Store is missing. E/GoogleApiAvailability(32689): Google Play services is invalid. Cannot recover.
Maybe the branch by @zverik is helpful? https://github.com/Zverik/flutter-geolocator/tree/floss
Or try adding forceLocationManager: true
to location settings, as written in the documentation.
Hi @eric-geek1232, thanks for reaching out!
As @Zverik mentioned, providing forceLocationManager: true
to AndroidSettings
should solve your problem.
I will close this issue now. We can reopen it if the proposed solution does not work for you.