Android Question Understanding Crashlytics

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am trying to understand how the Crashlytics works.

I have followed the tutorials and added it to one of my apps and it seems to works, kind of.

In the Starter Service, if I set the Application_Error to return True, then it seems to send the crash report to firebase Crashlytics which is fine and it works.

If I set the Application_Error to return False then it doesn't report to firebase Crashlytics.

If it's set to return False then my app doesn't crash and the user won't see any errors and my app continues to run. If I have it set to True and the app has an error then it will force close and ask the user to re-open it.

Is there a way to still report the crash when returning False in the Application_Error sub ?

Also, I noticed there is CL.CLog("msg") and also CL.SetKey("key","value")
What does that actually do? I tried putting that code on a button click but didn't see anything happen and didn't see anything log in the firebase Crashlytics. (unless I am looking in the wrong place?) Even waited a good hour after using the Clog and SetKey and nothing in firebase.

Also, is the following required in the Manifest for the Crashlytics to work ?

B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Maybe I need to wait until tomorrow for it show?
i dont know, sorry. Can be that it needs some time to appear.

I never tried it myself even if i am using CrashLytics in my Apps.

You ARE using Releasemode?

Note that logs are only sent in Release mode.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I just testet it. The crash appear within minutes in the console. Including the LOG i added and the Values i added...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…