I read the article about migrating a google api project to firebase:
doc
Has the migration of an Google API project to firebase an effect on the functionality of the current productive version of an App in Google Play or iOS? Will the defined API Keys (Oauth2 client ids, Google Places API keys, server keys...) still work after firebase migration?
Thanks!
Smilingm
I found a possible duplicate Question which was answered here:
Migration of Google Project to Firebase Console
I will try to migrate soon and check if problems occur. Update follows...
Related
Goal
I am currently working for a company where I need to access the People API from Google Cloud (for which I have set up OAuth) and also utilize Firebase's Analytics
Problem
I get this error:
google_sign_in plugin:PlatformException(sign_in_failed,com.google.android.gms.common.api.ApiException: 10: , null)
when I try to get access to the People API via OAuth.
This happens only when I specify the dependencies for google play services in the gradle files (app and project level) [Check SDK Instructions for Firebase Android Project.].
Things I tried
Giving all of the possible SHA keys for the app in the Google Cloud's credentials tab from this answer
Given support email for OAuth
Tried getting rid of the google play services dependencies from gradle files, this did solve the google_sign_in issue but Firebase Analytics stopped working and I get this error:
Missing google_app_id. Firebase Analytics disabled. See shortened_link_that_I_cant_post
Conclusion
Right now I am stuck with using only one of the two services. I removed Firebase from my Project and my App from Firebase console for now.
Packages Concerned
google_sign_in: ^5.4.3: https://pub.dev/packages/google_sign_in
extension_google_sign_in_as_googleapis_auth: ^2.0.7: https://pub.dev/packages/extension_google_sign_in_as_googleapis_auth
googleapis: ^10.0.0: https://pub.dev/packages/googleapis
firebase_core and firebase_analytics
I am developing kotlin project, when i upload release bundle in google console, following warning arised. How to fix this warning?
1 MESSAGE FOR VERSION CODE 49
Warning
The developer of play-services-safetynet (com.google.android.gms:play-services-safetynet) added the following note to SDK version 17.0.1:
The SafetyNet Attestation API is being discontinued and replaced by the new Play Integrity API. Begin migration as soon as possible to avoid user disruption. The Play Integrity API includes all the integrity signals that SafetyNet Attestation offers and more, like Google Play licensing and better error messaging. Learn more and start migrating at https://developer.android.com/training/safetynet/deprecation-timeline
Learn more about the SDKs that you're using and make informed SDK choices with Google Play SDK Index.
As warning says some part of Android API used by your project is deprecated, you are softly pushed to migrate to the new API.
To fix this issue you have to do this migration. Docs you have shared contains migration guide.
I recently released an Android App on the playstore this app is currently linked with both Google's Admob and Google's firebase for analytics, after a while I started working on an update that includes FIREBASE NOTIFICATIONS when I tried to connect firebase to the project I got this error:
Firebase
No clients were able to be added to your Firebase project for the following reasons:
An app with this package name and SHA1 is already connected to a Google project. If you have used a Google API previously, please select that project in the Connect to an existing project list.
Client Package Name: xxxxxxxxxxxxxxxxxxxxxxxxx
Client SHA1: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
How to fix this without loosing my previous analytics stats ?
You Should Use The existing App And Include Feature For Push Notifications at Firebase console or firebase assistant in studio
As you are creating a new project in firebase assistant for push notifications but you have aldready added this app for another services it Wont use two firebase projects for Single application so Make Sure You Are Going With The Past Project which you have done for admob and then go to cloud messaging amd enable it then you will successfully connect
If any errors again i can Help
Thank you
And If You Created Aldready you can import that project into previous project but make sure that you use same firebase account
https://firebase.google.com/support/faq/
Use this link to know about importing projects
I'm developing an app for Raspberry Ppi 3 using Android things.
And in the project...
My app's androidmanifest.xml contains
uses-library android:name="com.google.android.maps" /
but it couldn't run this app.
I get this message when I run it. (Google Maps installed.)
Installation failed with message INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/com.example.androidthings.myproject-1: Package com.example.androidthings.myproject requires unavailable shared library com.google.android.maps; failing!.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
How can I solve this problem?
Maps API isn't available in Android Things.
You can check the the list of supported and unavailable APIs here.
Anyway, You can use MapBox on Android Things instead of Google Maps API.
UPDATE:
At least from Developer Preview 5 Android Things supports Google Maps (from Official Overview):
Android Things supports a subset of the Google APIs for Android. The
following table breaks down API support in Android Things:
Supported APIs:
Awareness
Cast
Google Analytics for Firebase
Firebase Cloud Messaging (FCM)
Firebase Crash Reporting
Firebase Realtime Database
Firebase Remote Config
Firebase Storage
Fit
Instance ID
Location
Maps
Nearby
Places
Mobile Vision
SafetyNet
I am looking for a way to access Google Analytics reporting functionality on Android device.
An far as I can see, there is just tracking libriary for Google Analytics and Andoid. So my question is: What is the way to get Google Analytics reports on the Android device?
I was trying to use Java6 Google Analytics API installed by Google plugin for Eclipse, but was failed because of multiple errors, that seems to be related to different jars content for Java6 and its Android implementation.
What you're looking for is the Google Analytics Core Reporting API. There's a Java client library available which works on Android.