iosidentifieralassetphassetcross-device

PHAsset (or ALAsset) cross-device identifier


I am actually creating an iOS app, and want to store some details about Photo Library pictures in an SQLite database. I also would like to be able to share this data across the different devices the user has (imagine someone wanted to reorganize pictures on his iPhone, and wants to retrieve the same order in his iPad).

I have searched across the Apple documentation, but did not find any PHAsset identifier that is shared across devices. I also tried to check if the PHImageFileURLKey, hashValue, or localIdentifier of the PHAsset where shared, but none of them are.

Has someone already done something like this?


Solution

  • There is none at the moment. PHAsset had a shared identifier in the first iOS 8 Betas, but it was removed later on.