Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Why Request in IOS return sucess false( unknown error)?

$
0
0
I make a request to the server asking for login, which takes my mail, password and a firebase token, all of these are sent correctly, however, the response data returns with a false and an unkwown error, this happens only on Ios Already checked the petition on Insomnia, read various of the jsons returned and reduced the problem to Ios platform, checked the pod file to see if I missed references, but it all seems right void generatePOSTRequest(string slug, string request, System.Action callback) { WWW www; Dictionary postHeader = new Dictionary(); postHeader.Add("Method", "POST"); postHeader.Add("Content-Type", "application/json"); byte[] formData = System.Text.Encoding.UTF8.GetBytes(request); www = new WWW(apiURL + slug, formData,postHeader); StartCoroutine(WaitForRequest(www,callback)); } //slug is server/api/login //request is a json with a mail, a password and the firebase token

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>