Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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."

Is there something I actually need to do?

like image 214
Tsabary Avatar asked May 11 '19 02:05

Tsabary


People also ask

How do I edit AndroidManifest xml?

The Android manifest file is a specially formatted XML file. You can edit the XML manually by clicking on the AndroidManifest. xml tab. Android manifest files generally include a single <manifest> tag with a single <application> tag.

What is AndroidManifest xml and what should we include in it?

Every app project must have an AndroidManifest. xml file (with precisely that name) at the root of the project source set. The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.

How do I access AndroidManifest xml?

Go to Build > Analyze APK... and select your apk. Then you can see the content of the AndroidManifest file.

What is contained in AndroidManifest xml?

xml file in android. The AndroidManifest. xml file contains information of your package, including components of the application such as activities, services, broadcast receivers, content providers etc.


1 Answers

No, the documentation is saying that the hook already exists, if you use the default integration steps for Firebase. It's a ContentProvider that gets merged into the app by the build system. This ContentProvided is loaded first thing when the app starts, and its sole purpose is to initialize the Firebase SDK.

like image 143
Doug Stevenson Avatar answered Oct 21 '22 03:10

Doug Stevenson