Android Question Firebase Crashlytics with RemoteConfig - Crashlytics stops working

Jack Cole

Well-Known Member
Licensed User
Longtime User
I have been trying to update my apps to use the new Firebase SDK and Crashlytics. Crashlytics works fine until I add in RemoteConfig. Not seeing anything in unfiltered logs.

It must have to do with this integration step for RemoteConfig.

Replace in the Manifesteditor the line

B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)

with

B4X:
CreateResourceFromFile(Macro, FirebaseRemoteConfig.Firebase)

Crashlytics sends reports before I perform the RemoteConfig integration, but not after.

Anybody get this to work yet?
 

Jack Cole

Well-Known Member
Licensed User
Longtime User
Fixed it. I added this to the FirebaseAnalytics.jar file Firebase.b4x_excluded.

XML:
             <meta-data
                android:name="com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar"
                android:value="com.google.firebase.components.ComponentRegistrar"/>
            <meta-data
                android:name="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar"
                android:value="com.google.firebase.components.ComponentRegistrar"/>

I then changed this manifest line:

B4X:
CreateResourceFromFile(Macro, FirebaseRemoteConfig.Firebase)

Back to:

B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)

Now, both Crashlytics and RemoteConfig are working. Thanks Erel!!
 
Upvote 0

Jack Cole

Well-Known Member
Licensed User
Longtime User
P.S., Could you incorporate this back into the internal library distribution?

If not, I guess I could make the change the other way within FirebaseRemoteConfig.jar.
 

Attachments

  • FirebaseAnalytics.jar
    4.7 KB · Views: 302
Upvote 0

Jack Cole

Well-Known Member
Licensed User
Longtime User
I got it to work by including the manifest macro for Ads after Crashlytics. Here is the full set.

B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
'Firebase - Always required when using Firebase
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
'Firebase Notifications / Push messages
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
''Firebase Analytics
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
''Firebase Auth
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
'Firebase Crashlytics
CreateResourceFromFile(Macro, FirebaseAnalytics.Crashlytics)
''Firebase Ads
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0
Top