My code is:
Dim fullname As String
Dim UrlFIrebase As String
Dim a As Map
a.Initialize
a.Put("name","xyz")
a.Put("family","abcd")
Dim Jsongen As JSONGenerator
Jsongen.Initialize(a)
fullname=Jsongen.ToString
Dim b As HttpRequest
UrlFIrebase="
https://abcxyz.firebaseio.com/test/2.json"
b.InitializePost2(UrlFIrebase,fullname.GetBytes("UTF8"))
b.SetContentType("application/json")
Dim CliHttp As HttpClient
CliHttp.Initialize("CliHttp")
CliHttp.Execute(b,1)
I am using B4A version 8 and the last version of the B4A bridge. The libraries are Core, HTTP, JSON and OkHttp.
If I test on a real device on debug mode, it works fine, but if I change to Release mode the program writes the data and stops after that with the error "B4A example stopped".
Any ideas to solve this ?
Thanks in advance.