skip to content

Your delivery-tracking app uses Google Play services for location, maps, Google sign-in and Play Integrity; should it support devices without Play services, and with which fallbacks?

level: principalimportance: should knowfreq 30%

answer

  1. not part of Android
  2. measure who lacks it first
  3. required, degraded or replaced
  4. server policy for no attestation

basics

~20 s

Decide per feature from measured reach: require Play services where it is core, offer Google's fix dialog, and give other features a fallback or an honest refusal elsewhere. Security checks need a server policy for clients that cannot attest.

solid answer

~50 s

Play services isn't part of Android, so first measure `isGooglePlayServicesAvailable` codes per distribution channel, then decide per feature. Location can fall back to the platform's location API or manual address entry. The Maps SDK has no Play-free twin, so decide whether a stop list is an acceptable degraded mode. Sign-in through Credential Manager can still offer passwords or passkeys on Android 14 and higher, where providers register with the system; older devices need your own sign-in screen. Play Integrity fails with `PLAY_SERVICES_NOT_FOUND`, so the server needs a policy for unattested clients rather than a client-side skip. In-app updates only reach Play installs. Hide each API behind an interface, check at each feature's entry, and offer `makeGooglePlayServicesAvailable` when the problem is fixable. For a Play-only app in a Play-dominant market, requiring Play services is defensible; a real second channel deserves a tested second build.

go deeper

for a junior

Recall that some devices have no Google Play services and that each Play services feature then needs a fallback or a clear message.

for a middle

Explain which features in the app depend on Play services and the platform or product alternatives for each one.

for a senior

Show how to isolate each API behind an interface, check at the feature edge, and handle Play Integrity failure as a server-side case.

for a principal

Make the call from measured reach and maintenance cost: which features are required, degraded or replaced, and which build carries the fallbacks.

## Why this is a real decision Google Play services is not part of Android. Devices without the Google Play Store don't have it, and Google's own SDKs say devices without Play services aren't supported. Your app may still reach such devices: through another app store, enterprise or kiosk fleets, some device categories, or markets where many phones ship without Google Play. Every Play services API you adopt narrows the set of devices where a feature works. The decision a lead owns is **per feature**: *required*, *degraded*, or *replaced* on those devices. The other choice is to declare the app Google Play only and accept the lost reach. ## Measure before you decide 1. Log the result of `GoogleApiAvailability.isGooglePlayServicesAvailable` (the code, not just pass or fail) from each distribution channel. Separate "user can fix it" (outdated, disabled) from "can never work". 2. Count where installs come from. In-app updates and Play Integrity licensing only make sense for Play installs. 3. Weigh the cost: every fallback is a second code path to build, test and keep working. ## Feature by feature in the delivery-tracking app | Feature | Play services API | Without Play services | |---|---|---| | Customer location | `FusedLocationProviderClient` | Fall back to the platform's own location API, with your own accuracy and battery handling, or to manual address entry | | Courier map | Maps SDK for Android | A text timeline of stops, or a map component that doesn't need Play services | | Sign-in | Sign in with Google via Credential Manager | On Android 14 and higher, passwords or passkeys from other credential providers; everywhere, your own email sign-in | | Anti-abuse | Play Integrity | The server's policy for clients that cannot attest | | Update prompts | Play In-App Updates | A server-driven minimum-version check that links to the right store | Some notes on each row: - **Location** is the easiest fallback, because the platform has a location API. But the fused provider's source selection and battery management are what you would be giving up. - **Maps** has no Play-free equivalent inside Google's SDK. Decide whether the courier map is core, or whether a list of stops with ETAs is an acceptable degraded mode. - **Sign-in** through Credential Manager is broader than Google. On Android 14 and higher, providers register with the system, so the same API can still offer passwords and passkeys on a device without Play services, just not the Google path. On Android 13 and lower the provider library goes through Play services, so those devices need your own sign-in screen. - **Play Integrity** needs the Play Store and Play services, and fails on the client with `PLAY_STORE_NOT_FOUND` or `PLAY_SERVICES_NOT_FOUND`. A missing token must therefore be a *case your server handles*, typically with limits or extra verification, never a client-side skip. The tiering itself belongs to the security design material. - **In-app updates** come from the Play Core libraries and the Play Store, so they only reach Play installs. ## How to structure the code - **Isolate the dependency.** Put each Play services API behind an app-level interface (for example `LocationSource` or `AttestationProvider`) with a Play implementation and a fallback. Choose the implementation at runtime from the availability check, or at build time per distribution channel. Build variants are covered with the Android build. - **Check at the edge of each feature**, not once at startup. Play services can be disabled or fall behind later. Use `checkApiAvailability(client)` when one API decides the feature. - **Offer the fix first.** When the code is resolvable, `makeGooglePlayServicesAvailable(activity)` usually costs the user one tap, which is cheaper than any fallback. ## A defensible default For an app distributed through Google Play to a market where Play services is near-universal, a common lead decision is: **require** Play services for the Play build, show Google's resolution UI when it is fixable, and give an honest "this feature isn't available on this device" for the rest. A team with a real second channel adds a second build whose fallbacks are tested as seriously as the main path. What is not defensible is the accidental middle: a Play-only app that crashes, spins or silently skips security checks on the devices it was never designed for. ## Trade-offs to say out loud - Fallbacks double the testing surface and tend to rot unless they run in CI. - Requiring Play services is simpler and safer, but excludes users you may not see in your Play statistics at all. - Security features need a server policy for "no attestation", whichever path you choose.

  • How do you keep a fallback path from rotting when almost every tester has Google Play services?
    Make the fallback a first-class configuration. Run the test suite against an emulator image without Google APIs, inject the fallback implementations in tests through the same interfaces, and track the fallback build's crash and usage numbers. A path that never runs in CI breaks silently.
  • Why not simply skip the Play Integrity check on devices that cannot produce a token?
    Because an attacker can make any device look like it has no Play services. If the client skips the check, the server sees an unattested request with no signal that it was skipped. Send the failure, such as `PLAY_SERVICES_NOT_FOUND`, and let the server apply limits or extra verification to that class of client.

  • Every Android device that can install our APK has Google Play services.
  • Checking isGooglePlayServicesAvailable once at app start is enough for the whole session.
  • If Play Integrity is unavailable, the client should just skip the check and continue.
  • Supporting devices without Play services only means catching exceptions around Play services calls.
  • Sign in with Google through Credential Manager still works on a device without Google Play services.