I am using ObjectiveDropboxOfficial for my ios objective c project.
Everything is working fine except logout.
Here is the problem,
Step 1: Logged into dropbox.
Step 2: Logged out from dropbox.
Step 3: Trying to login again. It should ask me for login credentials because, i already logged out from dropbox which is not happening. Instead, it directly takes me to after login process screen. I attached the screenshot for that screen below.
https://drive.google.com/file/d/14887FaYrUoZZ5fwzbDXSHa0LHEWggqhn/view?usp=sharing
I tried all the possibilities that were given in the sdk, nothing helps.
Here is the code to logout from dropbox
[[ODBoxHandler sharedHandler] clientRequestedLogout];
Cleared cache from browser
[[NSURLCache sharedURLCache] removeAllCachedResponses];
NSHTTPCookieStorage *cookieJar = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for(NSHTTPCookie *cookie in [cookieJar cookies]) {
NSLog(@Cookies attached: %@", cookie.description);
if(cookie){
[cookieJar deleteCookie:cookie];
}
}
Cleared saved access token from keychain and dropbox.
[DBSDKKeychain clearAllTokens];
[DBClientsManager unlinkAndResetClients];
Dropbox sdk internally uses SFSafariViewController, where the cache is not cleared until i close the app and reopen again.
Any suggestions would be greatly helpful.