ios - Get notified when picture is added or removed from album -


i want notified when new photo added or deleted album in photos.app. in icloud photos. docs suggest use photos.framework phphotolibrary fetch list of assets , register observer.

so did observer never called.

@implementation photochangesobserver - (void)photolibrarydidchange:(phchange *)changeinstance {     nslog(@"%@", __pretty_function__, changeinstance); } @end  [[phphotolibrary sharedphotolibrary]registerchangeobserver:[photochangesobserver new]]; phfetchresult *res = [phasset fetchassetswithoptions:nil]; nslog(@"fetchassetswithoptions res: %@\n%d"); // 8 results 

then go photos.app , delete couple of photos , go app trigger fetch , indeed 6 results only. observer never called.

phfetchresult *res = [phasset fetchassetswithoptions:nil]; nslog(@"fetchassetswithoptions res: %@\n%d"); // 6 results after deletion 

is observer supposed called in case or edits pictures (like add filter, cropped, etc)?

i have tried adding other photos shared album. total


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -