<?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: authorizeFromController problems with Covenent Eyes in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206148#M10005</link>
    <description>&lt;P&gt;Wait a minute.&amp;nbsp; authorizeFromController is your API.&amp;nbsp; I don't know what it translates into in terms of pure Apple functions.&amp;nbsp; I can't very well take this question to an Apple forum unless I can present the problem using only non-Dropbox concepts.&amp;nbsp; It is not obvious to me that authorizeFromController is equivalent to "Presenting External Application", be it Saffari or some other browser.&amp;nbsp; If you guys can't give me a little more to go on, I can't really pursue this anywhere else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Robert Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hopkins, MN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 03:53:50 GMT</pubDate>
    <dc:creator>Robert S.138</dc:creator>
    <dc:date>2017-02-10T03:53:50Z</dc:date>
    <item>
      <title>authorizeFromController problems with Covenent Eyes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206119#M10001</link>
      <description>&lt;P&gt;I just heard from a user of my Objective-C app that when my app tries to link to Dropbox, nothing happens.&amp;nbsp; I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[DropboxClientsManager authorizeFromController:[UIApplication sharedApplication]
    controller:self
    openURL:^(NSURL *url){ [[UIApplication sharedApplication] openURL:url]; }
    browserAuth:YES];&lt;/PRE&gt;&lt;P&gt;and this works all the time, except for this one user.&amp;nbsp; It turns out he has installed the alternate browser "Covenent Eyes" and disabled Saffari on his iPhone.&amp;nbsp; I suggested that he try installing the Dropbox app on his device first, so that the authorization will come from there rather than from the browser.&amp;nbsp; I have not heard back from him, so I suppose it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, can I determine in code if this is happening?&amp;nbsp; If I can, then I can display a message to users advising them to install the Dropbox app or re-enable Saffari.&amp;nbsp; What is the cleanest solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Robert Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hopkins, MN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206119#M10001</guid>
      <dc:creator>Robert S.138</dc:creator>
      <dc:date>2019-05-29T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromController problems with Covenent Eyes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206127#M10002</link>
      <description>HI Robert, I'm afraid I don't know if there's a way to detect the Safari restriction. That question may be better suited for Apple's forum or support channel.&lt;BR /&gt;&lt;BR /&gt;I suspect it would be similar to the way we check for the official Dropbox app though, which you can see here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/1e4dee766d9ba78a6691bd1ee8b1c79cd5fda133/Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBOAuth.m#L364" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c/blob/1e4dee766d9ba78a6691bd1ee8b1c79cd5fda133/Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBOAuth.m#L364&lt;/A&gt;</description>
      <pubDate>Thu, 09 Feb 2017 23:51:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206127#M10002</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-09T23:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromController problems with Covenent Eyes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206148#M10005</link>
      <description>&lt;P&gt;Wait a minute.&amp;nbsp; authorizeFromController is your API.&amp;nbsp; I don't know what it translates into in terms of pure Apple functions.&amp;nbsp; I can't very well take this question to an Apple forum unless I can present the problem using only non-Dropbox concepts.&amp;nbsp; It is not obvious to me that authorizeFromController is equivalent to "Presenting External Application", be it Saffari or some other browser.&amp;nbsp; If you guys can't give me a little more to go on, I can't really pursue this anywhere else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Robert Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hopkins, MN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 03:53:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206148#M10005</guid>
      <dc:creator>Robert S.138</dc:creator>
      <dc:date>2017-02-10T03:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromController problems with Covenent Eyes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206149#M10006</link>
      <description>Apologies, I thought you wanted a general way to detect the Safari restriction for use in your app code.&lt;BR /&gt;&lt;BR /&gt;I've also reported this to the team to see if we can detect this on our side. The authorizeFromController method is designed to use either the official Dropbox app or Safari to process the authorization flow. Lacking either, I don't know if there's a way to use a third party browser like that, but I'll let the team investigate.</description>
      <pubDate>Fri, 10 Feb 2017 04:08:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206149#M10006</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-10T04:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromController problems with Covenent Eyes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206151#M10007</link>
      <description>&lt;P&gt;My needs are actually simpler than that.&amp;nbsp; I just need to know when it isn't going to work.&amp;nbsp; Then I can display a message to the user explaining the problem.&amp;nbsp; I can tell them to either install the Dropbox app or enable Safari.&amp;nbsp; I don't really need the Dropbox API to try any heroics with a browser that is probably designed to make things like this difficult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Robert Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hopkins, MN&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 04:24:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206151#M10007</guid>
      <dc:creator>Robert S.138</dc:creator>
      <dc:date>2017-02-10T04:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromController problems with Covenent Eyes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206152#M10008</link>
      <description>Understood, thanks!</description>
      <pubDate>Fri, 10 Feb 2017 04:26:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/206152#M10008</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-10T04:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromController problems with Covenent Eyes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/207366#M10157</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked into this issue. It's going to be hard on our end to detect this case, but what you can do is check the success of the `openURL` call you make in the closure that you pass the SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[DBClientsManager authorizeFromController:[UIApplication sharedApplication]
&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; controller:self
&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; &amp;nbsp; &amp;nbsp; openURL:^(NSURL *url) {
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOOL openURLCallSucceeded = [[UIApplication sharedApplication] openURL:url];
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(openURLCallSucceeded ? @"Yes" : @"No");
&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; &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; &amp;nbsp; &amp;nbsp; browserAuth:YES];&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;Here, you can use `&lt;SPAN&gt;openURLCallSucceeded` to determine whether or not to show an error message or something. Unfortunately, Apple doesn't make it easy for us to seemlessly pivot to another third-party browser.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&lt;SPAN&gt;Would this be satisfactory for you?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 00:38:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromController-problems-with-Covenent-Eyes/m-p/207366#M10157</guid>
      <dc:creator>Stephen C.14</dc:creator>
      <dc:date>2017-02-18T00:38:44Z</dc:date>
    </item>
  </channel>
</rss>

