I have this code
It fails with this message
I don't understand the error - there are two parameters.
B4X:
...
json.Initialize(m)
Dim Job As HttpJob
Job.Initialize("send message", Me)
Job.PostString("https://android.googleapis.com/gcm/send", json.ToString)
Job.GetRequest.SetContentType("application/json")
Job.GetRequest.SetHeader("Authorization", "key=" & Main.config.Get("AndroidApiKey"))
End Sub
The used libraries are:B4J version: 4.20 (1)
Parsing code. (0.02s)
Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Occurred on line: 39
Job.PostString("https://android.googleapis.com/gcm/send", json.ToString)
Word: json
I don't understand the error - there are two parameters.