'Firebase Android - Skipping initialization
I am currently implementing an Android app, which uses Firebase Cloud Messaging. I've implemented everything according to the tutorial on the Firebase page.
However, whenever I try to run my app it seems like the Firebase initialization fails. Both, on an emulator and on a real device I get this debug message:
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
W/InstanceID/Rpc: Found 10010
D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
It doesn't call the InstanceIDListener
.
And it strangely worked with the emulator once.
Solution 1:[1]
You have to add the following to your android manifest:
<service android:name=".MyFirebaseInstanceIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
Solution 2:[2]
I'm not sure, but I guess you missed:
FirebaseApp.initializeApp(getApplicationContext());
https://firebase.google.com/docs/reference/android/com/google/firebase/FirebaseApp
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Styx |
Solution 2 | Ruslan Stosyk |