<?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 SwiftyDropBox  SwiftyDropbox.MobileSafariViewController not in the window hierarchy in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-SwiftyDropbox-MobileSafariViewController-not-in/m-p/357492#M20388</link>
    <description>&lt;P&gt;Hi, I have developed an application in Xcode (macOS) for iOS and I have integrated the SwiftyDropBox API. I have followed all the instructions in the README, but when I make a call to open a link to DropBox I get the following error.&lt;/P&gt;
&lt;P&gt;Warning: Attempt to present &amp;lt;SwiftyDropbox.MobileSafariViewController: 0x7fb17981d800&amp;gt; on &amp;lt;Scipple_V2_0.ViewController: 0x7fb177c29d00&amp;gt; whose view is not in the window hierarchy!&lt;/P&gt;
&lt;P&gt;I have Googled this to death but can't find an answer.&lt;/P&gt;
&lt;P&gt;The initial DropboxClientsManager.setupWithAppKey seems to work (I am using the App Key I get from the App Console in DropBox.&lt;/P&gt;
&lt;P&gt;Can anyone give me any suggestions how to fix this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Neil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 13:47:30 GMT</pubDate>
    <dc:creator>NeilHowarth</dc:creator>
    <dc:date>2019-07-29T13:47:30Z</dc:date>
    <item>
      <title>SwiftyDropBox  SwiftyDropbox.MobileSafariViewController not in the window hierarchy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-SwiftyDropbox-MobileSafariViewController-not-in/m-p/357492#M20388</link>
      <description>&lt;P&gt;Hi, I have developed an application in Xcode (macOS) for iOS and I have integrated the SwiftyDropBox API. I have followed all the instructions in the README, but when I make a call to open a link to DropBox I get the following error.&lt;/P&gt;
&lt;P&gt;Warning: Attempt to present &amp;lt;SwiftyDropbox.MobileSafariViewController: 0x7fb17981d800&amp;gt; on &amp;lt;Scipple_V2_0.ViewController: 0x7fb177c29d00&amp;gt; whose view is not in the window hierarchy!&lt;/P&gt;
&lt;P&gt;I have Googled this to death but can't find an answer.&lt;/P&gt;
&lt;P&gt;The initial DropboxClientsManager.setupWithAppKey seems to work (I am using the App Key I get from the App Console in DropBox.&lt;/P&gt;
&lt;P&gt;Can anyone give me any suggestions how to fix this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Neil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 13:47:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-SwiftyDropbox-MobileSafariViewController-not-in/m-p/357492#M20388</guid>
      <dc:creator>NeilHowarth</dc:creator>
      <dc:date>2019-07-29T13:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox  SwiftyDropbox.MobileSafariViewController not in the window hierarchy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-SwiftyDropbox-MobileSafariViewController-not-in/m-p/357733#M20396</link>
      <description>&lt;P&gt;When/where are you calling&amp;nbsp;authorizeFromController?&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit; background-color: #ffffff;"&gt;This error message generally indicates that the authorization window can't be displayed because it relies on yourViewController, but theViewController wasn't in the window hierarchy (yet?) at time of the call.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; background-color: #ffffff;"&gt;Perhaps your ViewController wasn't presented (or was already dimissed) at the time?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:01:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-SwiftyDropbox-MobileSafariViewController-not-in/m-p/357733#M20396</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-29T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox  SwiftyDropbox.MobileSafariViewController not in the window hierarchy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-SwiftyDropbox-MobileSafariViewController-not-in/m-p/357886#M20406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you're right but not sure what I was doing wrong, the call is in my viewcontroller, however I tried&lt;/P&gt;&lt;P&gt;DropboxClientsManager.authorizeFromController(UIApplication.shared, controller: UIApplication.shared.keyWindow!.rootViewController!, openURL: { (url: URL) -&amp;gt; Void in UIApplication.shared.open(url, options: [:], completionHandler: nil) })&lt;/P&gt;&lt;P&gt;i.e. using rootViewController instead of self and it worked.&lt;/P&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;When/where are you calling&amp;nbsp;authorizeFromController?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This error message generally indicates that the authorization window can't be displayed because it relies on yourViewController, but theViewController wasn't in the window hierarchy (yet?) at time of the call.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Perhaps your ViewController wasn't presented (or was already dimissed) at the time?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 11:07:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-SwiftyDropbox-MobileSafariViewController-not-in/m-p/357886#M20406</guid>
      <dc:creator>NeilHowarth</dc:creator>
      <dc:date>2019-07-30T11:07:18Z</dc:date>
    </item>
  </channel>
</rss>

