i use this code to get data from firebase database
this work with android with B4I i get this error
ResponseError: unknown error, status code: 401
i get token with this code
B4X:
Dim job1 As HttpJob
job1.Initialize("FiBaDb_read", Me)
job1.Tag = strJobTag
job1.Download(strFiBaDbRoot & strPath & ".json" & "?auth=" & Main.strFirebaseSignedInUserToken)
this work with android with B4I i get this error
ResponseError: unknown error, status code: 401
i get token with this code
B4X:
Private Sub GetTokenfn As String
Dim no As NativeObject
Dim token As NativeObject = no.Initialize("FIRInstanceID").RunMethod("instanceID", Null).RunMethod("token", Null)
If token.IsInitialized Then Return token.AsString Else Return ""
End Sub