I used DropBox sync api to get sync my app data and import images from Dropbox. Now I wrote an observer to FileSystem. It's working fine with my account but is not working with other accounts. It's not giving any errors. addObserver:self forPathAndChildren:[DBPath root] block:^ does not get called.
if (![DBAccountManager sharedManager].linkedAccount.linked)
{
[[DBAccountManager sharedManager] linkFromController:self];
}
else
{
if(!dbFileSys)
{
dbFileSys = [DBFilesystem sharedFilesystem];
}
__weak id weakSelf = self;
[dbFileSys addObserver:self forPathAndChildren:[DBPath root] block:^
{
[weakSelf loadFiles]; //load files
}];
}
This observer called in my account. If i use other account not called.
[DBPath root]" valid at that point? - Michael Dautermann