I\'ve searched for this issue and there are many answers available but none are solving. I\'ve defined parameters as:
let parameters = [
\"na
Change parameters
type to [String : Any]
as follow:
let parameters = [
"name": username,
"mobile": "",
"email": email,
"password": "",
"blood_donor": "0",
"registration_id": defaults.string(forKey: "FCMToken"),
"platform": platform,
"appID": "3"
] as [String : Any]
Not necessary: Remove encoding: URLEncoding()
from param arguments, it may work without encoding.
Here is discussion on same issue and resolution by Alamofire developer: https://github.com/Alamofire/Alamofire/issues?utf8=%E2%9C%93&q=extra%20argument