Implementing PHBackgroundResourceUploadExtension

This thread has been locked by a moderator; it no longer accepts new replies.

Hi,

I am trying to implement a PHBackgroundResourceUploadExtension to upload backup media files to an external cloud service based on these docs: https://developer.apple.com/documentation/PhotoKit/uploading-asset-resources-in-the-background#Acknowledge-completed-jobs

Creating jobs and actual uploading is working as expected, but the problem I have is in the acknowledgeCompletedJobs() function.

When trying to access a job's resource, the resource is nil and thus has empty assetLocalIdentifier and originalFilename.

Did anybody successfully implement this extension or knows, why this would happen? Because the resource of an acknowledgable job is empty, I can not match it back to my processed assets.

Answered by DTS Engineer in 878860022

Let’s focus this discussion on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Boost

Let’s focus this discussion on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Implementing PHBackgroundResourceUploadExtension
 
 
Q