Android Question Firebase error in foreground

José Daniel Pozo Zamora

New Member
Licensed User
Hi everyone,
I have a problem, the firebase messages work fine when the application is in the background, but when it is in the foreground throw this error and close the application.
Thanks for your help beforehand


 

José Daniel Pozo Zamora

New Member
Licensed User
my code :
B4X:
Dim n As Notification
    n.Initialize
    n.Icon = "icon"
    n.Number = 1
    n.Light=True
    n.Sound=True
    n.Vibrate=True
    n.AutoCancel = True
    If Message.GetData.Get("message") <> Null Then
        Try
            n.SetInfo( Message.GetData.Get("titulo"), Message.GetData.Get("body"), Main)
            n.Notify(Message.GetData.Get("id"))
        Catch
            Log(LastException)
        End Try
    End if
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…