Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase for Play Services below 9

The Background

My app is heavily dependent on Firebase. I use most of the services like Authentication, Realtime database, Storage, Analytics, Crash Reporting and more.

Everything works fine so far, but I have a doubt regarding a particular scenario.

The Problem

As Firebase was introduced in Play Services 9, what will happen to those devices who have still not updated to Play Services 9.

  1. How will my app work on those devices as my app is heavily dependent on Firebase?

  2. How does Firebase cater to the scenario of backporting?

  3. Or should the developers some how check the version of Play Services and request the user to update?

like image 451
Aritra Roy Avatar asked Jul 28 '16 05:07

Aritra Roy


People also ask

How do I get an Appcheck token?

Once an attestation has been obtained, the app sends it to the Firebase App Check service, which further verifies the attestation against some app-specific parameters configured by the developer. If the attestation is recognized as authentic, the App Check service will issue a special App Check token for the app.

Is firebase core deprecated?

Deprecated: This module will no longer be available in SDK 48. Learn how to migrate to React Native Firebase. expo-firebase-core provides access to the Firebase configuration and performs initialization of the native Firebase App.


2 Answers

How will my app work on those devices as my app is heavily dependent on Firebase?

When installing the application, it will prompt them a message saying that this app requires a higher version of Play Services. So it will work properly.

How does Firebase cater to the scenario of backporting?

Firebase needs a minimum API of 9. If the device doesn't support anything that's missing from the device, it will simply tell them, so you don't have to worry.

Or should the developers some how check the version of Play Services and request the user to update?

NO, Android does this for you.

like image 99
Ali Bdeir Avatar answered Oct 03 '22 06:10

Ali Bdeir


i have edited my answer to make things a bit more clear

1. How will my app work on those devices as my app is heavily dependent on Firebase?

Android automatically checks for the play services version that is currently installed in the user's device and prompts the user to update to the play services version that the application was built with Firebase.

2. How does Firebase cater to the scenario of backporting?

Firebase explicitly outlines the latest version of play services as a prerequisite for building with it, there is no information on the docs about back porting so I don't think it is possible at the moment.

3. Or should the developers some how check the version of Play Services and request the user to update?

I wouldn't recommend this as Android already checks and pops up a play services error. However it is quite possible to check the version of play services and request the user to first update it in order to use your application, more info on this can be found on this link isGooglePlayServicesAvailable(Context)

like image 34
Noel Omondi Avatar answered Oct 03 '22 07:10

Noel Omondi