Dropbox iOS SDK无法从网络/桌面接收未链接的通知

时间:2014-03-25 18:32:18

标签: ios dropbox-api

在我的application:didFinishLaunchingWithOptions:方法中,我设置了我的Dropbox帐户:

DBAccountManager *accountManager = [[DBAccountManager alloc] initWithAppKey:TADropboxAppKey secret:TADropboxAppSecret];
[DBAccountManager setSharedManager:accountManager];
[[DBAccountManager sharedManager] addObserver:self block:^(DBAccount *account) {
/* 
   This block should be executed "whenever a new account is linked or an existing 
   account is unlinked. The observer will be called regardless of whether 
   the account was unlinked using `-[DBAccount unlink]` or by the user on 
   the Dropbox website."
*/
}];

然后,我将我的应用链接到用户的Dropbox帐户(使用[[DBAccountManager sharedManager] linkFromController:myViewController])。

Dropbox Sync API documentation表示"无论帐户是否使用-[DBAccount unlink]或Dropbox网站上的用户取消链接,都会调用观察者。"

但是,在我的使用中,当帐户链接时,似乎会调用此块,但是当帐户从Dropbox网站或用户的桌面Dropbox环境取消链接时,从不会调用此块(删除应用程序的文件夹。

我错过了什么?

0 个答案:

没有答案
相关问题