如何从Fabric Crashlytics迁移到Firebase Crashlytics? [英] How to migrate from Fabric Crashlytics to Firebase Crashlytics?

查看:83
本文介绍了如何从Fabric Crashlytics迁移到Firebase Crashlytics?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,可将崩溃和非致命事件记录到Fabric Crashlytics,并使用Firebase Analytics记录分析事件.

我想从Fabric Crashlytics迁移到Firebase Crashlytics.另外,我想在迁移期间保存来自Fabric的历史数据.

当我尝试使用提供的Firebase迁移机制(

  1. 那我该如何正确迁移?
  2. 我发现Fabric团队成员发表了一些声明( https://stackoverflow.com/a/49734863/4312184 )迁移过程尚未准备好保存历史数据.但是也许现在已经准备好了吗?

解决方案

迁移后会发生什么?

对于您链接的应用程序,您的Crashlytics数据现在显示在Firebase Crashlytics仪表板(https://console.firebase.google.com/project/_/crashlytics)中(在Firebase控制台中).链接过程不涉及对Crashlytics SDK或Fabric API密钥的任何更改.

请注意,在接下来的几个月中,我们将发布适用于iOS和Android的Firebase特定的Crashlytics SDK,并提供进一步的升级说明.因此,现在,如果您迁移了iOS和Android应用程序:

  • 请勿更改Crashlytics SDK的使用方式,因为iOS和Android SDK并未更改.

  • 请勿更改或删除您的Fabric API密钥.

注意:要将Unity应用迁移到Firebase,请遵循 Unity迁移说明并查看 Unity API更改.

发现Firebase Crashlytics

在Firebase Crashlytics信息中心(https://console.firebase.google.com/project/_/crashlytics)中找到所有的Crashlytics数据(在Firebase控制台中).

重要提示:要查看无崩溃用户的指标,您需要自定义速度警报.

  • 使用Google Analytics(分析)面包屑(要求Google Analytics(分析)).

  • 将您的Crashlytics数据导出到BigQuery ,然后对其进行分析使用BigQuery和Crashlytics Data Studio模板.

  • 新集成(https://console.firebase.google.com/project/_/settings/integrations),包括 Google Analytics(分析)是Firebase的分析引擎,可让您访问对数据的强大见解.

    安装Google Analytics(分析)SDK

    访问Google Analytics(分析)文档,以了解如何在 Android Unity 应用.

    注意:在您的应用中初始化Google Analytics(分析)SDK后,可能要花几个小时才能使数据显示在Firebase Crashlytics仪表板中.

    Google Analytics(分析)如何帮助Crashlytics

    Google Analytics(分析)释放了您已经在Fabric中使用的宝贵功能:

    注意:Firebase只能使用Google Analytics(分析)收集的分析数据.因此,对于您迁移的应用程序,您的历史分析数据(来自Fabric Answers)无法迁移到Firebase.这意味着,与崩溃数据不同,您的分析数据将从空白处开始,并且Firebase控制台将仅显示在安装和初始化Google Analytics(分析)SDK之后收集的数据.

    监视您的最新版本

    在您的应用中初始化Google Analytics(分析)后,您可以在最新发行"页面(https://console.firebase.google.com/project/_/analytics/latestrelease)中监视当前构建的稳定性和指标.Firebase控制台.

    通过两种不同的方式访问最新版本"页面:

    • 在Firebase Crashlytics仪表板(https://console.firebase.google.com/project/_/crashlytics)中,单击事件趋势"卡中的链接.

    • Firebase控制台中,转到左侧导航窗格中的分析"部分,然后单击最新版本.

    使用事件而不是答案

    通过Google Analytics(分析),您可以设置自定义事件和预定义事件,类似于Fabric的答案.

    • 要了解如何使用Firebase设置事件,请访问您平台的Google Analytics(分析)文档( iOS Android 团结).

    • 要了解如何将现有的Answers事件转换为Google Analytics(分析)事件,请访问结构分析页面.

    重要提示:检测Google Analytics(分析)事件后,我们建议从您的应用代码中删除Answers事件.

    配置您的通知设置

    现在,您已经迁移到Firebase,您将开始从Firebase和Fabric接收电子邮件.

    您可以配置通知设置:

    邀请您的团队成员

    现在您已迁移到Firebase,邀请您的团队,以便他们可以开始使用Firebase并在Firebase控制台中访问您迁移的应用程序.

    • 从Firebase控制台-访问项目设置->用户和权限(https://console.firebase.google.com/project/_/settings/iam)将队友添加为Firebase项目的成员.

    • 在Fabric网站上-访问邀请页面(https://fabric.io/firebase_migration/invite),在Fabric迁移仪表板中邀请您的队友使用已迁移的应用程序.只需单击一下,您便可以将与您的应用程序关联的所有队友添加到Firebase项目中.

    注意:使用Fabric迁移控制台上的一键式邀请按钮可分配编辑者角色所有受邀成员.

    来源: 迁移步骤之后从Fabric链接

    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:

    1. So how can I do migrate properly?
    2. 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:

    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:

    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

    这篇关于如何从Fabric Crashlytics迁移到Firebase Crashlytics?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆