I'm working on a project where we have an Android tablet that cannot have google play services installed on it. Which features/services of firebase have a dependency on google play services to run?
Specifically I'm looking at real-time database, authentication, firestore, and firebase cloud messaging.
I spoke with a developer advocate that said that real-time database doesn't have that dependency, but I couldn't find any official documentation that states that.
firebaser here
Some Firebase products require Google Play Services, while others don't. Information on this is nowadays included in the Firebase documentation, so I recommend checking out dependencies of Firebase Android SDKs on Google Play services for the latest list.
You can see it from the documentation.
https://firebase.google.com/docs/android/android-play-services
I managed to run my app after migrating to non play services Firebase Auth, while the database and storage continue to work fine.
Google Pay service can basically installed apps in its sore onto the device, if you cannot use this you would need to make the app as a "progressive web app" instead then. https://developers.google.com/web/progressive-web-apps/
Effectively what you can do through a webpage, using firebase hosting/firebaseDB/storage you would want to simply install a npm i -g firebase-tools do a firebase init in your project folder and configure your firebase settings to use your apps distribution folder for AnglularCLI the public folder would be "dist"
with the old versioning, play-services-base and play-services-auth were required; eg. to use FirebaseAuth with a Google account. the documentation only states firebase-core (checked that yesterday, because of a similar dependency question). but most likely, the "Login with Google" auth-provider might not be available then - and you would have to offer alternate ways to register an account.
Related
In Firebase -> Project Settings -> integrations, I found only Google Analytics, and cannot found Google Tag Manager, so I need to make sure that is my app is connected successfully to google tag manager.
Installation of GTM for Apps is documented here: https://developers.google.com/tag-manager/ios/v5 (for iOS, but you should find Android instructions from there).
However if all you need is Google Analytics, Firebase is enough - you can then use the Google Analytics Integration (configured in your Firebase account) to analyze your data in a GA4 property.
Universal Analytics is no longer supported for Apps (was never supported in Firebase, and the Google Analytics SDKs for apps have been deprecated quite some time ago).
I'm developing an app that will run in a android device that doesn't have google Play Store, and Google Play services.
I need to use the firebase CM in my app. Is there any way to include the plugin inside my APK (is not going to be distributed outside those devices) so the service works properly?
Yet, there is no official or announced support for using Firebase without Google Play.. Some Firebase dependencies like Realtime database may work but not recommended from Firebase
I'm using the Google Play services in my Android app so I have the dependency in my build.gradle.
compile 'com.google.android.gms:play-services:10.2.1'
But Android Studio shows a warning for it: Avoid using bundled version of Google Play services SDK.
What does this warning mean? How should I avoid it? I've googled a lot without finding much related info.
In versions of Google Play services prior to 6.5, you had to compile the entire package of APIs into your app. In some cases, doing so made it more difficult to keep the number of methods in your app (including framework APIs, library methods, and your own code) under the 65,536 limit. From version 6.5, you can instead selectively compile Google Play service APIs into your app
inside compile com.google.android.gms:play-services:12.0.0 contains alot of dependencies.. see below.. using play-services may cause dex problem and heavy app. Select only which want do you really depends to :)
Google Play services API Description in build.gradle
Google+ com.google.android.gms:play-services-plus:12.0.0
Google Account Login com.google.android.gms:play-services-auth:12.0.0
Google Actions,
Base Client Library com.google.android.gms:play-services-base:12.0.0
Google Address API com.google.android.gms:play-services-identity:12.0.0
Google Analytics com.google.android.gms:play-services-analytics:12.0.0
Google Awareness com.google.android.gms:play-services-awareness:12.0.0
Google Cast com.google.android.gms:play-services-cast:12.0.0
Google Cloud Messaging com.google.android.gms:play-services-gcm:12.0.0
Google Drive com.google.android.gms:play-services-drive:12.0.0
Google Fit com.google.android.gms:play-services-fitness:12.0.0
Google Location and
Activity Recognition com.google.android.gms:play-services-location:12.0.0
Google Maps com.google.android.gms:play-services-maps:12.0.0
Google Mobile Ads com.google.android.gms:play-services-ads:12.0.0
Google Places com.google.android.gms:play-services-places:12.0.0
Mobile Vision com.google.android.gms:play-services-vision:12.0.0
Google Nearby com.google.android.gms:play-services-nearby:12.0.0
Google Panorama Viewer com.google.android.gms:play-services-panorama:12.0.0
Google Play Game com.google.android.gms:play-services-games:12.0.0
SafetyNet com.google.android.gms:play-services-safetynet:12.0.0
Android Pay com.google.android.gms:play-services-wallet:12.0.0
Android Wear com.google.android.gms:play-services-wearable:12.0.0
Firebase
Firebase API Description in build.gradle
Analytics com.google.firebase:firebase-core:12.0.0
Realtime Database com.google.firebase:firebase-database:12.0.0
Cloud Firestore com.google.firebase:firebase-firestore:12.0.0
Storage com.google.firebase:firebase-storage:12.0.0
Crash Reporting com.google.firebase:firebase-crash:12.0.0
Authentication com.google.firebase:firebase-auth:12.0.0
Cloud Messaging com.google.firebase:firebase-messaging:12.0.0
Remote Config com.google.firebase:firebase-config:12.0.0
Invites and
Dynamic Links com.google.firebase:firebase-invites:12.0.0
AdMob com.google.firebase:firebase-ads:12.0.0
App Indexing com.google.firebase:firebase-appindexing:12.0.0
Performance Monitoring com.google.firebase:firebase-perf:12.0.0
EDIT
Above version is already deprecated. They use individual versioning. Please refer Link Below
Google Play Service - https://developers.google.com/android/guides/setup
Firebase - https://firebase.google.com/docs/android/setup
Google play services contain many individual APIs.
You can access whichever you require instead of accessing a bundle containing all of them. It's better approach. See Table No. 1 Here
Background
I'm developing an app using Firebase features (Realtime Database, Firebase Messaging, Analytics, Crash Reporting and Auth [Facebook]). In my country, most of the users don't have wifi and rarely upgrade apps (including Google Play Services).
Question
As the title suggests, I would like to know the minimum version (the lowest). I'm also willing to remove some features if it will help to lower the Google Play Services version.
Do I need to check google play service version in my application code or will Firebase check for me?
Finding so far and I'm confused,
This post say min version is 9.0
This post say min version is 8.1.15
This SO question say developer no need to check Google Play Services
but, This doc say developer need to check Google Play Services
The most trustworthy site says 9.0
For a list of the libraries available for the different Firebase features, see Firebase libraries. The following features are now part of Firebase in the Google Play Services 9.0 SDK.
The current stable is 9.4.
https://firebase.google.com/support/releases
Will importing a Google Project into Firebase interfere with or break the operation of any legacy applications using the related APIs? For example, we currently use the Youtube APIs to allow users to upload videos to a website. Would this be affected after migrating?
It shouldn't break the legacy applications since the API key etc will remain the same. I've migrated the Google Project to Firebase project. I used to use Google Cloud Messaging API. Now I migrated from GCM to FCM (Firebase Cloud Messaging) and the projectId, projectNumber or SenderID, API Key, all remained the same. I didn't have to change anything on the server side as well and it worked out of the box.
Also if you import your Google Cloud Project to Firebase Project, the project on Google Cloud Platform still remains and you can keep using the same API's for now in similar manner. It seems that only for GCM, Google App Invites and AdMob, you can 'choose' to upgrade to corresponding Firebase services.