Android Question Unable to resolve host ""


Active Member
Licensed User
Longtime User
I have an app running which send notifications via firebase. Since the 27.11 I get the following error :

ResponseError. Reason: Unable to resolve host "": No address associated with hostname, Response:

When I send a notification from the google firebase console it works fine.

public Sub SendNotif( Title As String, Body As String, Topic As String)
    Dim j As HttpJob
    Dim API_KEY As String ="my-key"
    If Topic.Trim ="" Then
    End If
    J.Initialize("fcm", Me)
    Dim m As Map = CreateMap("to": $"/topics/${Topic}"$)
    Dim data As Map = CreateMap("title": Title, "body": Body,"sound": "default")
    m.Put("data", data)
    Dim jg As JSONGenerator
    J.PostString("", jg.ToString)
    J.GetRequest.SetHeader("Authorization", "key=" & API_KEY)

    Log("************************ send: " & Title & " body:" & Body)

End Sub


Active Member
Licensed User
Longtime User
The problem is solved. After an energy fail the device connected automatically to a router without internet access.
So the notifications couldnt be sent.
Upvote 0