Is there a way to register for notifications when user takes a picture or video which are added to the camera roll? I know you can register for Contacts notifications, but I need to know if user has added image or video to the camera roll. I see the Google+ claim they upload your image "instantly" after you take a picture but I wonder if they just run in the assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos loop in the thread all the time...
Asked
Active
Viewed 817 times
1 Answers
3
ALAssetsLibraryChangedNotification
Sent when the contents of the assets library have changed from under the app that is using the data.
From ALAssetsLibrary
Sergey Kuryanov
- 6,114
- 30
- 52
-
1Will I get this notification even if my app is in the background or only when user actually puts the app in the foreground? – Gal Blank Mar 15 '13 at 01:39
-
You will receive it when app will come to foreground. To work in background you have three options http://stackoverflow.com/a/4928363/88198 – Sergey Kuryanov Mar 15 '13 at 01:42
-
Then how google+ claim to upload your photo instantly when you take a picture without the need to go into the foreground? – Gal Blank Mar 15 '13 at 01:49
-
Maybe tracks users location – Sergey Kuryanov Mar 15 '13 at 01:56