Josh Russo
Josh Russo

Reputation: 3241

Xamarin Google Play Services missing?

I'm attempting to get Google Cloud Messaging working in a Xamarin Forms Android app from within Visual Studio 2012 and the GoogleApiAvailability.Instance.IsGooglePlayServicesAvailable(this) call is returning error code 1 (Missing Service). I made sure that the NuGet package was installed (otherwise the namespace isn't available) and that the Android SDK Manager had Google Play services installed.

What more do I need to do to make the service available?

Edit 10/20 1:34PM

The IsGooglePlayServicesAvailable() returns the success code when I debug the app over USB on my device

Upvotes: 2

Views: 1880

Answers (1)

Josh Russo
Josh Russo

Reputation: 3241

My problem was that I was trying to use the emulators that come with the Android SDK, instead of the Xamarin Android Player https://xamarin.com/android-player.

Keep in mind that you will also need to install the Google Play Store app and update it if you need to use Google Play services https://university.xamarin.com/resources/how-to-install-google-play-on-android-emulator

Upvotes: 2

Related Questions