-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Firebase Analytics for [KMP] #517
Comments
Yes, we absolutely need it |
@atonamy |
According to this article implementation looks pretty simple and straightforward I'm surprised why is still not part of firebase-kotlin-sdk ? I wonder if this secret key can be retrieved somehow by using tools of this firebase-kotlin-sdk itself? |
You need to obtain a secret key for each application within your Firebase console project and hardcode it either inside BuildConfig or in GitHub secret keys, for instance. The secret key will not change regardless. By using firebase-kotlin-sdk you can't get secret keys. |
Then how firebase-kotlin-sdk internally call other Firebase API without exposing secret key? |
@atonamy, google-services.json file contains all the necessary information for making requests to the SDK. However, for the REST API, you would need secret keys, which can be found in the official documentation — https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?hl=ru&client_type=firebase |
how to use google-services.json instead with KMP any example for Analytics? Using secret key is not a solution for us. |
@atonamy
Why? It's created by the developer for each project and stored inside the application or somewhere. This is quite normal. |
@atonamy |
Exiting native code base we have all written with native Firebase SDK and google-services.json using secret key creates multiple source of truths which violate our coding polices.
I was thinking about it, but it creates more boilerplate code to maintain I was hoping some simpler solution exists. Hope it will become part of firebase-kotlin-sdk soon. |
@atonamy, for my enterprise project, using secret keys was a good solution because we only have Firebase Analytics and Crashlytics in our project. I think it's a quite good solution, but it might not be for some other projects. |
I am working on an implementation of this within this project. I created a PR for it so if it is accepted then it will be available soon. #525 |
Its merged so in the next version it will be available 🎉 |
No description provided.
The text was updated successfully, but these errors were encountered: