Android Question Firebase Crashlytics

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys -

I got an eMail, that the Fabric SDK will work until November 15, 2020 only.
To update a program according https://www.b4x.com/android/forum/threads/crashlytics-crash-reports.87510/ was simple. But remains a problem, which I was not able to fix with old SDK also.
I output to log inside Catch. If there is a fatal exceptions, I can see messages in Firebase Console. If there are non-fatal exceptions only, I see nothing in Firebase Console. Any ideas ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

Try this:
B4X:
Sub Activity_Click
    Try
        Dim ii As Int = "dddd"
    Catch
        If LastException.IsInitialized Then
            GetCrashlytics.RunMethod("recordException", Array(LastException))
        End If
        Log(LastException)
    End Try
End Sub

Private Sub GetCrashlytics As JavaObject
    Dim jo As JavaObject
    jo = jo.InitializeStatic("com.google.firebase.crashlytics.FirebaseCrashlytics").RunMethod("getInstance", Null)
    Return jo
End Sub
Note that the exception is not sent immediately.
 
Upvote 0
Top