Reputation: 73
I'm building an iOS mobile app that needs to be notified whenever the user takes a new picture with the camera of the iPhone (with the phone's default camera app).
I tried to google it, but I couldn't find out if this is possible:
Swift or Objective-C solution would be good as well. Any help is appreciated, even a yes or no answer (whether it's possible or not)
Upvotes: 0
Views: 776
Reputation: 683
I don't think there are any possibilities, as of now.
I don't know why, but my guess would be that for security reasons Apple won't let camera run in the background at all.
Other alternatives may include:
UIImagePickerControllerUserDidCaptureItem
to listen to camera button press event, as mentioned here.EDIT
You can observe the changes made in the photo library to track if any changes (here, addition) of photos are done.
Upvotes: 1