You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PhotoResponse currently lacks an identifier for photos saved to the iOS media library. Adding a unique identifier, such as the localIdentifier provided by the PHAsset API, would allow developers to reliably reference and manage saved photos. This feature is already indirectly supported on Android via the uri, but it is missing on iOS.
Proposed Implementation
Use the PHAsset's localIdentifier when saving a photo to the iOS media library. This value is unique and can be easily retrieved during the saving process.
Extend the PhotoResponse type to include an optional identifier field
interfacePhotoResponse{filePath?: string;identifier?: string;// New field for iOS}
Use Case
Including a unique identifier is crucial for developers who need to:
Reference saved photos later for updates, sharing, or deletion.
Programmatically manage photos in albums.
Synchronize photo metadata with a backend.
By aligning with Android's uri behavior, this feature would provide consistency across platforms and enhance the plugin's usability in photo management apps.
Example Response
After saving a photo on iOS, the PhotoResponse could look like this:
This feature would ensure parity between iOS and Android and provide a more robust developer experience for applications relying on media management. Thank you for considering this request!
The text was updated successfully, but these errors were encountered:
Great idea, I should be able to get this done by end of year. I think this should be a pretty simple feature, so PRs welcome :) definitely a good first issue.
Include Identifier in PhotoResponse for iOS
Description
The
PhotoResponse
currently lacks an identifier for photos saved to the iOS media library. Adding a unique identifier, such as thelocalIdentifier
provided by thePHAsset
API, would allow developers to reliably reference and manage saved photos. This feature is already indirectly supported on Android via theuri
, but it is missing on iOS.Proposed Implementation
Use the
PHAsset
'slocalIdentifier
when saving a photo to the iOS media library. This value is unique and can be easily retrieved during the saving process.Example:
Extend the PhotoResponse type to include an optional identifier field
Use Case
Including a unique identifier is crucial for developers who need to:
By aligning with Android's uri behavior, this feature would provide consistency across platforms and enhance the plugin's usability in photo management apps.
Example Response
After saving a photo on iOS, the PhotoResponse could look like this:
Additional Notes
This feature would ensure parity between iOS and Android and provide a more robust developer experience for applications relying on media management. Thank you for considering this request!
The text was updated successfully, but these errors were encountered: