Cross-device identifier PHAsset (or ALAsset)

I am actually building an iOS application and want to save some information about photo library photos in a SQLite database. I would also like to be able to share this data on different devices that the user has (imagine someone wants to reorganize images on their iPhone and wants to get the same order on their iPad).

I looked through the Apple documentation but did not find the PHAsset identifier that is shared on devices. I also tried to check if there is PHImageFileURLKey , hashValue or localIdentifier PHAsset where it is shared, but none of them are.

Has anyone already done something like this?

+5
source share
2 answers

This is currently not the case. PHASset had a common identifier in the first beta of iOS 8, but was later removed.

+4
source

It appears that for all PHAssets that have been synced with iTunes, the localIdentifier is identical even on all devices. Means: if you import images from one device and synchronize them with another device, the local PHAsset identifier is identical.

0
source

All Articles