flutter_photo_manager icon indicating copy to clipboard operation
flutter_photo_manager copied to clipboard

[How to use] Asset unique identifier os icloud

Open StigUK opened this issue 9 months ago • 3 comments

Platforms

iOS

Description

I have two iOS devices that have the same iCloud and the same gallery. We use the "id" field in AssetEntity as a unique identifier for the image. However, if I do AssetEntity.fromId(1) on one device and AssetEntity.fromId(1) on another, will I get the same image? As I understand it, the id field is local for each device (localIdentifier), so I will receive different images using the same identifier.

Is there any way to get the same image on different devices but with the same gallery?

This is important for my application because I need to remember which images the user has already used, and if he wants to transfer the data to a new device, then I will have problems with this.

My code

No response

Try do it

I see that iOS has a cloudIdentifier. Is it possible to somehow get it using PhotoManager via AssetEntity? https://developer.apple.com/documentation/photokit/phcloudidentifier

StigUK avatar Nov 07 '23 06:11 StigUK