When using SDK 3.1.7, and building a ShareExtension in Swift, when trying to send a photo using a code similar to:
let file: Data = xxx
let params = SBDFileMessageParams(file: file)
params?.mimeType = xxx
if let params = params {
sbChannel.sendFileMessage(with: params, completionHandler: { message, error in
completionHandler(id, error)
})
}
I’m getting an error like this:
ShareExtension[xx:xxx] Task <xxx>.<1> finished with error [-995] Error Domain=NSURLErrorDomain Code=-995 "(null)" UserInfo={_NSURLErrorRelatedURLSessionTaskErrorKey=(
"BackgroundUploadTask <xxx>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=BackgroundUploadTask <xxx>.<1>}
sending a text message from the same environment works.
Is there a known issues for sending photos from a share extension?