push notification using SendWEBRequest
audrius.kiskunas
8-12-21
Operating system: Windows
Hello,

we want to use function SendWEBRequest to send push notifications via Google Firebase, but the parameters of the function are not quite clear. Below we put question marks "= ?" for functions that need to be explained.


SendWebRequest(server,443,-1,true,"POST",getstr,"text,xml","",false,req,reply,30);


server = server address
443 = port

-1 = ?
true = ?
"POST" = request method
getstring = request parameters to be included into the request line (after server address)
"text/xml" = Content -Type
"" = ?
false = ?
req = request body in json format?
reply = response?
30 = ?

Appreciate Your comments and recommendations.

Audrius
Nick Hemming
8-18-21
hi Audrius

This is being reviewed by the Team and I WILL GET BACK TO YOU asap.

Nick
Nejc R.
8-18-21
server = server address
443 = port
-1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what
true = use SSL flag (will use SSL if true)
"POST" = request method
getstring = request parameters to be included into the request line (after server address)

"text/xml" = Content -Type
"" = Used for SOAP method
false = not certain I think its mostly unused now but should be set to false

req = data that will be sent as the payload in the request (usually a json or XML)
reply = data that comes back as the payload in response (usually a json or XML)
30 = timeout in seconds
audrius.kiskunas
8-19-21
Created byNejc R.10:27 18 Aug 2021
server = server address 443 = port -1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what true = use SSL flag (will use SSL if true) "POST
Thank You!

Audrius
Christoffer Riska
8-20-21
Created byNejc R.10:27 18 Aug 2021
server = server address 443 = port -1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what true = use SSL flag (will use SSL if true) "POST
Maybe someone could update this site http://halforum.hansaworld.net/primitives
It is missing a lot of info.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Reino Botha
Please check your version of android if it is the same as the server you are connecting too. ...
08:24 21 Nov 2024
Bror-Erik Kotiranta
In NC you hace operations&gt;&gt;ai chats. They are used for these Br, Bror-Erik...
05:12 21 Nov 2024