This is the output I get when I request a api url from my iOS application -
{
"task": null,
"reason": "The operation couldn’t be completed. The `parameters` argument is not valid JSON.",
"headers": {},
"failure": {
"description": "nativescript-https > Invalid SSL certificate! Error Domain=com.alamofire.error.serialization.request Code=-1016 \"The `parameters` argument is not valid JSON.\" UserInfo={NSLocalizedFailureReason=The `parameters` argument is not valid JSON.}",
"reason": "The operation couldn’t be completed. The `parameters` argument is not valid JSON.",
"url": "https://sab.xxxxxxx.com/gattu/login/"
},
"content": null
}
I am checking on an emulator (iPhone 11). The same configuration with same certificate is working correctly in android.
I need help. It is very urgent. @EddyVerbruggen
I solved this. The "content" property for POST/PUT/PATCH takes different values for android and iOS. For android, we have to stringify the "content" object and for iOS, we have supply as it is.
This is the output I get when I request a api url from my iOS application -
I am checking on an emulator (iPhone 11). The same configuration with same certificate is working correctly in android. I need help. It is very urgent. @EddyVerbruggen