question

4leaflabs avatar image
4leaflabs asked Jacob Abrams answered

Using Google Play Services

Hi,

I'm considering the use of some Google APIs to augment the app that I have. To do so would require availability of the key GMSCore libraries such as the following:

import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GoogleApiAvailability; import com.google.api.client.extensions.android.http.AndroidHttp; import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential; import com.google.api.client.googleapis.extensions.android.gms.auth.GooglePlayServicesAvailabilityIOException; import com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException;

Are there any known conflicts or limitations for using such dependent packages in an app that is deployed on Clover devices in production?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered

Google Play Services is not installed or available on Clover devices. Using classes which begin with com.google.android.gms in your app will result an exception being thrown when they are referenced.

Classes that begin with com.google.api.clientmay be used by including associated JARs in your app. See https://developers.google.com/api-cli... for more information but ignore the message that says "use the Google Play Services library for the best performance and experience".

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community