Can't link app in Fabric to existing Firebase project - android

I'm trying to migrate my Android app from Fabric Crashlytics to Firebase Crashlytics. My app has an existing Firebase project set up for messaging and analytics. This Firebase project is not yet linked to Fabric.
I start in the Firebase console. When I select the Crashlytics option for my app, I'm asked if the app is already set up for Crashlytics, which it is.
When I confirm this, I'm then prompted to head over to Fabric and link the Crashlytics app to the Firebase project.
So I follow that link and head over to Fabric to start the migration process.
In Fabric, I'm prompted to drag or click to create a new Firebase project.
Regardless of whether I drag an app or click, I'm prompted to set up a new Firebase project. It does not allow me to enter the existing Firebase Project ID. If I try, by editing the Project ID field, it tells me that the ID is already taken.
How can I link my existing Firebase project here?

After contacting Fabric support, they helpfully pointed out that I need to be an owner of the Firebase project in order for the migration to work. After I became an owner, the Firebase project showed up in Fabric and the migration worked flawlessly.

Related

How to use a Google Cloud Project and Different Firebase Project Together For a Flutter App

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

What is best way of migrating the Fabric to crashlytics now (After may 2020, all data and dashboards are disappeared)

I have used Fabric before 2 years.Now I need to migrate to firebase. Here what is the good way to proceed? Shall I remove all fabric related integrations and add firebase as new integration.
Or
Shall I need to add the firebase with the existing fabric account?
Any best practices?
Firebaser here -
If you missed the migration window to move from Fabric to Firebase, the best way forward is to set up a new Firebase project, add your desired apps to your Firebase project, and then follow the Crashlytics onboarding instructions to get Firebase Crashlytics working. The Firebase Crashlytics SDK is now the main supported Crashlytics SDK, and the old Fabric SDK will no longer report crashes past November 15th, as Misha noted.
Once you've been able to verify that a test crash has come through to your dashboard, you should be all set to include it in a live version that goes out to your users.
In Fabric you easily migrate your existing projects to Firebase account. Migration is just a click of a button in Fabrics web page.
Next thing is integration of SDK into project.
You can leave old Fabric SDK for now. It will continue reporting your app's crashes until November 15, 2020.
But after November 15 you will need to remove Fabrics sdk and install Firebase.

How to reset the migration from Fabric to Firebase?

This is my problem: I have an android app that links to Fabric Crashlytics. I have followed steps to migrate to Firebase, but I cannot find the migrated App in my current google account, and I am not sure I have migrated to my current google account. I want to do it again, but the status is marked as "migrated".
My question is:
1) is there any ways I can reset the project status, so that I can re-migrate from Fabric Crashlytics
to Google Firebase Project?
2) if not, is there any ways I can locate where is my migrated Google Firebase Project? I have used "View app in Firebase Crashlytics", but it ask me to request access.
You can unlink your app from Firebase by navigating to Project Settings>Integrations>Fabric. Afterwards, you can go through the migration process once more.

How to migrate from Fabric Crashlytics to Firebase Crashlytics?

I have an app that logs crashes and non-fatals to Fabric Crashlytics and uses Firebase Analytics to log analytics events.
I want to migrate from Fabric Crashlytics to Firebase Crashlytics. In addition I want to save historical data from Fabric during the migration.
When I try to do it with provided mechanism of Firebase Migration (https://fabric.io/firebase_migration/apps) I cannot do it in a way I want to. In particular, I cannot provide existent Firebase project ID for migration. I see error:
So how can I do migrate properly?
I found some statements from Fabric team members (https://stackoverflow.com/a/49734863/4312184) that migration process is not ready for saving historical data. But maybe it is ready now?
What happened when you migrated?
For the apps that you linked, your Crashlytics data now appears in the Firebase Crashlytics dashboard (https://console.firebase.google.com/project/_/crashlytics) (in the Firebase console). The linking process does not involve any changes to the Crashlytics SDK or your Fabric API key.
Note that in the coming months, we'll release Firebase-specific Crashlytics SDKs for iOS and for Android, as well as offer further upgrade instructions. So for now, if you migrated an iOS and Android app:
Do not change how you use the Crashlytics SDK because the iOS and Android SDKs haven't changed.
Do not change or remove your Fabric API key.
Note: For migrating Unity apps to Firebase, follow the Unity migration instructions and review the Unity API changes.
Discover Firebase Crashlytics
Find all your Crashlytics data in the Firebase Crashlytics dashboard (https://console.firebase.google.com/project/_/crashlytics) (in the Firebase console).
Important: To view crash-free users metrics, you need Google Analytics in your app.
Firebase Crashlytics offers several new features:
Customize your velocity alerts.
Use Google Analytics breadcrumbs (requires Google Analytics).
Export your Crashlytics data to BigQuery, then analyze it using BigQuery and the Crashlytics Data Studio template.
New integrations (https://console.firebase.google.com/project/_/settings/integrations), including a Jira integration that enables you to link Crashlytics issues with Jira issues from the Firebase console.
Start using Google Analytics
Google Analytics is Firebase's analytics engine and gives you access to powerful insights into your data.
Install the Google Analytics SDK
Visit the Google Analytics documentation to learn how to install and initialize the SDK in your iOS, Android, or Unity app.
Note: After you initialize the Google Analytics SDK in your app, there can be a delay of a few hours before data appears in the Firebase Crashlytics dashboard.
How Google Analytics helps Crashlytics
Google Analytics unlocks valuable capabilities and features that you were already using in Fabric:
Monitor your Latest Release status.
Use Google Analytics events like you used Fabric's Answers.
Track your app's crash-free users metrics in the Firebase Crashlytics dashboard (https://console.firebase.google.com/project/_/crashlytics).
Set custom alerts for your app's stability with velocity alerts.
Note: Firebase can only use analytics data collected by Google Analytics. So, for your migrated apps, your historical analytics data (from Fabric Answers) cannot migrate to Firebase. This means that, unlike your crash data, your analytics data will start from a blank slate and the Firebase console will only show data collected after installing and initializing the Google Analytics SDK.
Monitor your Latest Release
With Google Analytics initialized in your app, you can monitor the stability and metrics of your current builds in the Latest Release page (https://console.firebase.google.com/project/_/analytics/latestrelease) in the Firebase console.
Access the Latest Release page a couple different ways:
In your Firebase Crashlytics dashboard (https://console.firebase.google.com/project/_/crashlytics), click the link in the Event trends card.
In the Firebase console, go to the Analytics section in the left navigation pane, then click Latest Release.
Use Events rather than Answers
Google Analytics lets you set custom and predefined events, similar to Fabric's Answers.
To learn how to set up events using Firebase, visit the Google Analytics documentation for your platform (iOS, Android, or Unity).
To learn how to convert your existing Answers events to Google Analytics events, visit the Fabric Analytics page.
Important: After you instrument Google Analytics events, we recommend removing Answers events from your app's code.
Configure your notification settings
Now that you've migrated to Firebase, you will start getting emails from both Firebase and Fabric.
You can configure your notifications settings:
For Firebase — Configure your Firebase notifications and integrations in the Firebase console:
For notifications, manage your Firebase alert subscriptions for Crashlytics via Alerts -> Alert Settings (click the bell icon in the top-right corner of the Firebase console).
For integrations, visit Project settings -> Integrations (https://console.firebase.google.com/project/_/settings/integrations) to set up notifications for Jira, Slack, and PagerDuty.
For Fabric — Configure your Fabric notifications in Fabric's settings page (https://fabric.io/settings/notifications):
Note: Firebase Crashlytics will use Fabric per get.fabric.io/roadmap only until March 31, 2020. Migrate your apps to Firebase to take advantage of the latest products and features there.
Modify the settings for your Fabric notifications so that you're not receiving duplicate emails from both Firebase and Fabric.
Invite your team members
Now that you've migrated to Firebase, invite your team so that they can start using Firebase and access your migrated app in the Firebase console.
From the Firebase console — Visit Project settings -> Users & permissions (https://console.firebase.google.com/project/_/settings/iam) to add teammates as members of your Firebase project.
From the Fabric site — Visit the invite page (https://fabric.io/firebase_migration/invite) in the Fabric migration dashboard to invite your teammates to your migrated apps. With just one click, you can add all teammates associated with your app to your Firebase project.
Note: Using the one-click invite button on Fabric's migration dashboard assigns the Editor role to all invited members.
Source: Migration steps after linking from Fabric

No clients were able to be added to your Firebase project

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

Categories

Resources