How to obtain photos and where are they saved from?

Open a photo in your phone photo album and swipe up to see more information. Some pictures have "Saved from ***". How can I get this information, or how to get this content through PHAsset. like to (https://i.sstatic.net/c8oVS.png)

Answered by DTS Engineer in 798797022

Hello @wuhaoyuan,

There is no API to access the "Saved from <app>" information. Please file an enhancement request for such an API using Feedback Assistant.

Best regards,

Greg

Are you looking for the location where the photo was shot ? It is location property in PHAsset: https://developer.apple.com/documentation/photokit/phasset

Some sample code to access here: ttps://mobikul.com/phasset-in-swift/

Hope that helps.

This is not the result I wanted, thank you @ 克劳德31

Hello @wuhaoyuan,

There is no API to access the "Saved from <app>" information. Please file an enhancement request for such an API using Feedback Assistant.

Best regards,

Greg

How to obtain photos and where are they saved from?
 
 
Q