<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: iOS Obj-C  Example of  [DBClientsManager unlinkAndResetClients] in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218301#M11448</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new completion handler (iOS 10) &amp;nbsp;solved the response problem that was missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2017 21:23:34 GMT</pubDate>
    <dc:creator>mrobinson</dc:creator>
    <dc:date>2017-04-27T21:23:34Z</dc:date>
    <item>
      <title>iOS Obj-C  Example of  [DBClientsManager unlinkAndResetClients]</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/217905#M11403</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I downloaded the examples and can't find a instance of how to use this function:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;This code doesn't not unlink or reset clients:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;- (IBAction)didPressUnlink {
&amp;nbsp; &amp;nbsp; [DBClientsManager unlinkAndResetClients];
&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; linkButton.hidden=NO;
&amp;nbsp; &amp;nbsp; unlinkButton.hidden=YES;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
}&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thoughts?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:23:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/217905#M11403</guid>
      <dc:creator>mrobinson</dc:creator>
      <dc:date>2019-05-29T09:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: iOS Obj-C  Example of  [DBClientsManager unlinkAndResetClients]</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218019#M11412</link>
      <description>&lt;P&gt;There's an example of using &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBClientsManager.html#/c:objc(cs)DBClientsManager(cm)unlinkAndResetClients" target="_self"&gt;unlinkAndResetClients&lt;/A&gt;&amp;nbsp;in the sample app &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/003d03898d77052f5958938363be0b98e9088618/Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/ViewController.m#L32" target="_self"&gt;here&lt;/A&gt;. Your usage looks correct though, and the method is working correctly for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you checking if it worked? You generally should just check if&amp;nbsp;[DBClientsManager authorizedClient] is not nil. Also, what version of the SDK do you have installed? Please update to the latest if you aren't already using it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 17:45:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218019#M11412</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-26T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: iOS Obj-C  Example of  [DBClientsManager unlinkAndResetClients]</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218222#M11432</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just noticed that my app is has "&amp;lt; Dropbox" in the upper left corner, shouldn't it leave the dropbox app after authentification?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like it is "Pushing" to my app instead of leaving dropbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_7578.png" style="width: 750px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/412i1FD52A39C4EAF3FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_7578.png" alt="IMG_7578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me that something is amiss with the method below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No results are being "NSlogged"&amp;nbsp;upon login:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options:(NSDictionary&amp;lt;UIApplicationOpenURLOptionsKey,id&amp;gt; *)options {
&amp;nbsp; &amp;nbsp; DBOAuthResult *authResult = [DBClientsManager handleRedirectURL:url];
&amp;nbsp; &amp;nbsp; if (authResult != nil) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ([authResult isSuccess]) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"Success! User is logged into Dropbox.");
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if ([authResult isCancel]) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"Authorization flow was manually canceled by user!");
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if ([authResult isError]) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"Error: %@", authResult);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; return NO;
}&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 21:03:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218222#M11432</guid>
      <dc:creator>mrobinson</dc:creator>
      <dc:date>2017-04-27T21:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: iOS Obj-C  Example of  [DBClientsManager unlinkAndResetClients]</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218299#M11447</link>
      <description>That "&amp;lt; Dropbox" is a feature of recent versions of iOS. It's a shortcut back to the previous app after you switch between apps. That's a system feature, so I don't believe we have control over it, but it doesn't indicate that you're still in Dropbox.&lt;BR /&gt;&lt;BR /&gt;Regarding the openURL issue, your code looks right. That openURL method should get called after the user authorizes the app to connect to their Dropbox account. What steps are you taking to reproduce this issue specifically? Is nothing getting logged because authResult is nil?</description>
      <pubDate>Thu, 27 Apr 2017 21:07:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218299#M11447</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-27T21:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: iOS Obj-C  Example of  [DBClientsManager unlinkAndResetClients]</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218301#M11448</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new completion handler (iOS 10) &amp;nbsp;solved the response problem that was missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 21:23:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-Obj-C-Example-of-DBClientsManager-unlinkAndResetClients/m-p/218301#M11448</guid>
      <dc:creator>mrobinson</dc:creator>
      <dc:date>2017-04-27T21:23:34Z</dc:date>
    </item>
  </channel>
</rss>

