I'm trying to add Firebase Analytics to my wearOS project. Everything works fine for the phone app but when I check the logs for the wearOS version I get this message:
Missing google_app_id. Firebase Analytics disabled.
Since all the code related to Analytics is in a shared module I'm starting to think that Firebase Analytics does not work with wearOS. Am I right?
It is possible to use Google Analytics for Firebase with Wear OS. Just make sure to include
implement 'com.google.firebase:firebase-core:<version>'
in your gradle file, and you're ready to go.
Since Firebase doesn't allow duplicate package names in the same project and your related Android and Wear OS apps' package names should match, you won't be able to have a separate Wear OS app entry in your Firebase project.
https://developer.android.com/training/wearables/apps/packaging#specifying-app-as-standalone
If your Wear 2.0 app has an accompanying phone app, use the same package name for your Wear app and that phone app.
You can use the data layer in order to send data or messages from your Wear OS app to your Android app, then have the Android app trigger events as needed.
https://developer.android.com/training/wearables/data-layer
Related
App Check (beta) of project settings of a firebase project is showing apps as unregistered, but it is not showing how to solve it. I added my apps' package name and debug SHA-1 key in this project. I have also used Google authentication in my app. Now, how can I register my app?
This is because those apps are not currently set up for App Check. If you click on the field, it'll prompt you for one of several verification means of attestation. Setting this service up and implementing it within your app's source code will register the app within App Check.
You can find the documentation for the respective attestations here
That's my concern, currently I'm developing an application that uses Firebase. Recently my identifiers for Android no longer work, the error tells me that the App ID does not match, however I am using google-services.json provides from my firebase console after adding my android application with its SHA key- 1.
My file is inside android/app folder like Firebase want it.
I have no problem with my iOS application, everything works fine.
Do you think I should try to delete Android ID clients OAuth 2.0 from google cloud platform and try to recreate it ?
it works, delete and recreate everything works, because Firebase works independently : if you delete an app inside your firebase console, it doesn't delete it inside google cloud platform.
My application has many flavor that has different application id. I want to register these applications to create to Firebase project.
I want to automate below process:
Create android application in Firebase project.
Enable crashlytics for the applitaion.
Download google-service.json of the project.
Firebase Management API seems to be able to first one, but other can't. I try using puppeteer to control Firebase console in browser, but google prevent to log in by automated browser.
Is there any other solution?
To download google-services.json, you can call projects.androidApps.getConfig from the management API.
For the second one, it's currently not possible. Contact Firebase support to file a feature request.
I have two android applications. I am using only one firebase project for both of them, with both applications included in it. So I have only one google-services.json with specified keys for both my applications. I am trying to use firebase cloud messaging and I am experiencing following problems:
When I want to test cloud messaging from firebase console I am able to choose to which appId I want to send a message. I have both applications installed on my device. Both are working normally. I have also released them to google play (alpha testing) and everything went well. I am able to download them from store normally. AppId should be set properly (how can I check that?). Problem is, that when I choose the first app in firebase console I am receiving notifications from both apps and when I choose the second app I am receiving nothing.
What can cause these problems? Do I need to create completely new firebase project for the second app, too? Or am I missing something?
If you need to see some code, let me know. At this point I don't know what piece of code could tell you more about my problem.
It looks like you have used same google service json file on both your apps. So thats why sending cloud notification for one app is received on both apps while in second case since no app has the json file for that there is no notification.
Go to your firebase project settings and download the google services file for both app ( you should first download one and move that file to desired project then download second services file).
I want to know what happens to users already installed applications, if i made any change in backend application and deploy module to app engine???
i.e i installed an application in play store yesterday with google storage backend in java. Now i wanted to add new feature to my existing app. but i am afraid if i did something wrong in backend application and deploy it to app engine, whether it will effect my installed application and users????
Your already published app will be the same as when you published. If you had any communication with backend app will expect that backend will be working.
You can change anything in your backend as long as old endpoints will be working. If you need to make bigger update and remove some of elements in backend your app you should check version of backend API in your app and notify user about needed update of app.
Best way to check if everything is working is simply run existing app and verify if everything is ok. If anything broke up prepare fixed version of app and publish to play market as soon as possible. Users will get notification about update of your app. In that case they will have not working app until update.