Categories
Mastering Development

FCM Message not being sent

Hi I have an IOS App which leverages the FCM messaging using firebase. I enabled the logic for sending notification using firebase console which works fine and devices registered with the app receive the notification. This means that APN and ios setup with firebase is correct. Fast forward what I am doing in the app […]

Categories
Mastering Development

Swift 5 & Alamofire 5 : GET method ERROR: Alamofire.AFError.URLRequestValidationFailureReason.bodyDataInGETRequest(22 bytes)

I am trying to get records from Database using Alamofire. I am sending parameters in GET request as below. let headers : HTTPHeaders = [“x-access-token”: “\(t)”,”username”:”\(Base.sharedManager.user)”,”password”:”\(Base.sharedManager.pass)”] let parm : [String: Any] = [“search_str” : self!.searchStr] // let searchUrl = Base.sharedManager.URL+”questions/get/”+self!.searchStr let searchUrl = Base.sharedManager.URL+”questions/get/” AF.request(searchUrl, method: .get, parameters: parm, encoding:JSONEncoding.default , headers: headers, interceptor: nil).response […]