Home > Software engineering >  Objective c - How to check if the photo metadata has been changed
Objective c - How to check if the photo metadata has been changed

Time:03-05

I am developing in-House iOS app with objective-c for capturing images and I'm depending on photos metadata to get the correct locations and dates, but the new iOS versions allow the user to adjusting and changing the whole photo information, and our field staff able to changing the photo metadata with fake details.

The only ways that can protect the informations: 1- How to check the photo if metadata has changed or not, and refuse the modified photo.? 2- It possible to create configuration file to make all photos with read-only?

CodePudding user response:

The photo library, accessible through the Photos app, belongs to the user — not to you. So if you don't want the user to have normal powers over these photos, then don't store them in the user's photo library.

CodePudding user response:

With other objects on iOS (I'm thinking of contacts in particular) you can store metadata of your own in Apple's database. I don't think that's the case with photos, sorry.

You could perhaps require your users take the photo in your app and store the location in a database of your own. You might be able to store the photo in the photos database if that's something you want.

  • Related