mozilla-magnet / magnet-client

A nearby content discovery client for Android & iOS
Mozilla Public License 2.0
17 stars 10 forks source link

'Google Play services out of date' #317

Closed wilsonpage closed 7 years ago

wilsonpage commented 7 years ago

Seen this testing on Android N.

Google Play services out of date.  Requires 9877000 but found 9683440
wilsonpage commented 7 years ago

I had success calling this:

int result = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);
GoogleApiAvailability.getInstance().showErrorDialogFragment(this, result, 9);

It brings up a prompt for the user to update, which takes them to a hidden 'Google Play Services' listing on the Google Play Store. If they update that app and then return to Magnet we are able to get GPS updates as normal.

This doesn't seem to work on emulator, only on real device.