Send feedback
Stay organized with collections
Save and categorize content based on your preferences.
google_play_services
Google Play services APIs included with the Firebase C SDK.
Summary
These APIs are Android-specific.
Functions
CheckAvailability (JNIEnv *env, jobject activity)
Check whether Google Play services is available on this device.
MakeAvailable (JNIEnv *env, jobject activity)
Attempt to make Google Play services available, by installing, updating, activating, or whatever else needs to be done.
MakeAvailableLastResult ()
Enumerations
Availability
Availability
Possible availability states for Google Play services.
Properties
kAvailabilityAvailable
Google Play services are available.
kAvailabilityUnavailableDisabled
Google Play services is disabled in Settings.
kAvailabilityUnavailableInvalid
Google Play services is invalid.
kAvailabilityUnavailableMissing
Google Play services is not installed.
kAvailabilityUnavailableOther
Some other error occurred.
kAvailabilityUnavailablePermissions
Google Play services does not have the correct permissions.
kAvailabilityUnavailableUpdateRequired
Google Play services need to be updated.
kAvailabilityUnavailableUpdating
Google Play services is currently updating.
Functions
CheckAvailability
Availability CheckAvailability (
JNIEnv * env ,
jobject activity
)
Check whether Google Play services is available on this device.
See also:
MakeAvailable()
Note: This function is Android-specific.
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.
Note: This function is Android-specific.
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()
Note: This function is Android-specific.
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.
Send feedback
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2023-07-18 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-07-18 UTC."]]