ios - How to know why file isn't transferring? -
i'm transferring file ios watchos. applicationcontext , userinfo transfers work fine. when run following code, nothing transferred. filetransfer.transferred == false.
let filetransfer = wcsession.defaultsession().transferfile(fileurl, metadata: dict)
i can see of attempts queued when at:
let transfers = wcsession.defaultsession().outstandingfiletransfers
is there can check provide feedback why nothing getting transferred? i'm using simulators. file plist file. i'm accessing this:
let fileurl = nsurl(fileurlwithpath: nsbundle.mainbundle().pathforresource("myfile", oftype: "plist")!)
fileurl
return file path.
Comments
Post a Comment