flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

No support on Terminals without Google Play Services

Open eric-geek1232 opened this issue 2 years ago • 1 comments

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

eric-geek1232 avatar Apr 01 '22 16:04 eric-geek1232

I/flutter (32689): permission = LocationPermission.whileInUse W/GooglePlayServicesUtil(32689): Google Play Store is missing. E/GoogleApiAvailability(32689): Google Play services is invalid. Cannot recover.

KingSering avatar Apr 28 '22 10:04 KingSering

Maybe the branch by @zverik is helpful? https://github.com/Zverik/flutter-geolocator/tree/floss

amenk avatar Oct 15 '22 15:10 amenk

Or try adding forceLocationManager: true to location settings, as written in the documentation.

Zverik avatar Oct 15 '22 15:10 Zverik

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.

JeroenWeener avatar Jul 11 '23 14:07 JeroenWeener