Hi ,
I am currenlty using sfauthorizationpluginview. The result is always nil for the URLData on calling the webservice on ScreenSaver or Lock Screen while the same code is working fine on accessing the login window .
The issue is only lying with catalina. tested mojvae it was working fine.
Code i am using :
let session = URLSession.shared
let ds = DispatchSemaphore( value: 0 )
let task = session.dataTask(with: theRequest,
completionHandler: { data, response, error -> Void in
AppLogger.writeLog(toFile: "Url Data from Task: \(String(describing: data))", with:Debug)
if(data != nil)
{
let httpResponse = response as! HTTPURLResponse
statusCode = httpResponse.statusCode
if let urlData = data
{
responseData = String(data: urlData, encoding: .utf8) ?? ""
}
if(responseData.isEmpty)
{
AppLogger.writeLog(toFile: "Response data is empty.", with:Error)
}
}
else
{
statusCode = 408
}
// do my thing..., then unblock main thread
ds.signal()
})
task.resume()
// block thread until semaphore is signaled
ds.wait()
same is happening on using the NSURLConnection.sendSynchronousRequest()