Google Play services APIs included with the Firebase C++ SDK.

Summary

These APIs are Android-specific.

Enumerations

Availability{
  kAvailabilityAvailable,
  kAvailabilityUnavailableDisabled,
  kAvailabilityUnavailableInvalid,
  kAvailabilityUnavailableMissing,
  kAvailabilityUnavailablePermissions,
  kAvailabilityUnavailableUpdateRequired,
  kAvailabilityUnavailableUpdating,
  kAvailabilityUnavailableOther
}
enum

Possible availability states for Google Play services.

Functions

CheckAvailability(JNIEnv *env, jobject activity)

Check whether Google Play services is available on this device.

MakeAvailable(JNIEnv *env, jobject activity)

::firebase::Future< void >

Attempt to make Google Play services available, by installing, updating, activating, or whatever else needs to be done.

MakeAvailableLastResult()

::firebase::Future< void >

Get the future result from the most recent call to MakeAvailable().

Enumerations

Availability

 Availability

Functions

CheckAvailability

Availability CheckAvailability(
  JNIEnv *env,
  jobject activity
)

Check whether Google Play services is available on this device.

See also: MakeAvailable()

Details
Returns

True if Google Play services is available and up-to-date, false if not. If false was returned, you can call MakeAvailable() to attempt to resolve the issue.

MakeAvailable

::firebase::Future< void > MakeAvailable(
  JNIEnv *env,
  jobject activity
)

Attempt to make Google Play services available, by installing, updating, activating, or whatever else needs to be done.

Details
Returns

A future result. When completed, the Error will be 0 if Google Play services are now available, or nonzero if still unavailable.

MakeAvailableLastResult

::firebase::Future< void > MakeAvailableLastResult()

Get the future result from the most recent call to MakeAvailable().

See also: MakeAvailable()

Details
Returns

The future result from the most recent call to MakeAvailable(). When completed, the Error will be 0 if Google Play services are now available, or nonzero if still unavailable.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-07-18 UTC.