简体   繁体   English

如何在AndroidManifest.xml中为Firebase添加一个钩子进行初始化?

[英]How can I add a hook in the AndroidManifest.xml for Firebase to initialize?

I've been using Firebase for a few things already, but now I want to add the Crashlytics and on step 3 in the guide it is said "For Android apps, a hook in the AndroidManifest.xml file automatically initializes the Firebase SDK." 我已经使用Firebase做了一些事情,但现在我想添加Crashlytics并在指南的第3步说“对于Android应用程序,AndroidManifest.xml文件中的一个钩子会自动初始化Firebase SDK。”

Is there something I actually need to do? 我真的需要做些什么吗?

No, the documentation is saying that the hook already exists, if you use the default integration steps for Firebase. 不,如果您使用Firebase的默认集成步骤,则说明该钩子已经存在。 It's a ContentProvider that gets merged into the app by the build system. 它是一个ContentProvider,由构建系统合并到应用程序中。 This ContentProvided is loaded first thing when the app starts, and its sole purpose is to initialize the Firebase SDK. 应用程序启动时首先加载此ContentProvided,其唯一目的是初始化Firebase SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM