Android Error : E/push: Failed to register java.lang.IllegalStateException: FirebaseApp name [DEFAULT] already exists! at com.google.android.gms.common.internal.Preconditions.checkState(Unknown Source:29) at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.2:350) at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.2:324) at com.defold.push.Push.registerFirebase(Push.java:348) at com.defold.push.Push.startFirebase(Push.java:378) at com.defold.push.Push.access$200(Push.java:54) at com.defold.push.Push$1.run(Push.java:177) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7050) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
and E/defold: ERROR:PUSHEXTEXTERNAL: HandleRegistrationResult: FirebaseApp name [DEFAULT] already exists!
Please check how many times you call .initializeApp( method in your native extensions.
Just search for this line .initializeApp( in your project and show me the result.
I’ve done quite a bit of testing today and found some issues on Android regarding how Firebase is initialized. I don’t believe the current setup would work very well in combination with other Firebase extensions such as extension-firebase-analytics.
Hi,
thanks for the fix and updates, and sorry for the delay, big rush at work (got my own digital agency, crazy times…)
i’ll test during my free time soon