iOS Question What is the ServerUrl Application_PushToken

aboalwaleed

Member
Licensed User
Longtime User
What is the ServerUrl Application_PushToken

Do I find it in ( tools-build server - server setting )
I have used it and the port
but Job.Success = false

B4X:
Private Const ServerUrl As String = "http://192.168.0.100:51042"

Private Sub Application_PushToken (Success As Boolean, Token() As Byte)
    
    
    If Success Then
        Dim bc As ByteConverter
        Dim j As HttpJob
        j.Initialize("j", Me)
        j.PostString(ServerUrl & "/devicetoken", "token=" & bc.HexFromBytes(Token) & "&type=1")
    Else
        Log("Error getting token: " & LastException)
    End If
end sub


[_success=0, _jobname=j, _username=
, _password=, _errormessage=The request timed out., _target=<b4i_main: (null)>
, _req=<B4IHttpRequest: <NSMutableURLRequest: 0x1c4012c60> { URL: [URL]http://192.168.0.100:51042/devicetoken[/URL] }>, _tag=<NSObject: 0x1c4012d50>, _res=(null)
, _main=<b4i_main: (null)>, _httputils2service=<b4i_httputils2service: (null)>, _signin=<b4i_signin: (null)>
, _main2=<b4i_main2: (null)>]
 
Top