<?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 Auth Hangs in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292192#M17832</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'm following the SwiftyDropbox documentation for my project, and have gotten as far as having my app switch to authenticating via web login thru safari but it just hangs there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I build on an actual device and have the Dropbox app, I log in without a problem but I want the safari / web login to&amp;nbsp;work as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've named my app the same in Xcode and Dropbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm&amp;nbsp;using Alamofire (4.5.1) SwiftyDropbox (4.6.0), Xcode&amp;nbsp;9.4.1 Swift 4. Deployment target 10.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Keychain sharing is on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't&amp;nbsp;see anything in output&amp;nbsp;to show me where I'm going wrong:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;2018-08-17 10:45:08.792346-0500 Pic Droper[9957:299305] -canOpenURL: failed for URL: "dbapi-8-emm://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2018-08-17 10:45:08.958285-0500 Pic Droper[9957:299305] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/15slim/Library/Developer/CoreSimulator/Devices/ABA24F85-62A1-4656-AE95-25BF8E735546/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-08-17 10:45:08.959279-0500 Pic Droper[9957:299305] [MC] Reading from private effective user settings.
2018-08-17 10:45:09.018774-0500 Pic Droper[9957:299305] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2018-08-17 10:45:23.442747-0500 Pic Droper[9957:299305] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Podfile:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;# Uncomment the next line to define a global platform for your project
  platform :ios, '10.1'

target 'Pic Droper' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Pic Droper
  pod 'SwiftyDropbox'

end&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;In my app delegate&amp;nbsp;I have the following with my actual api&amp;nbsp;key replaced:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&amp;gt; Bool {
        
        DropboxClientsManager.setupWithAppKey("api-key-replaced")
        return true
    }

    // 2. Handle redirect back into SDK
    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -&amp;gt; Bool {
        if let authResult = DropboxClientsManager.handleRedirectURL(url) {
            switch authResult {
            case .success:
                print("Success! User is logged into Dropbox.")
            case .cancel:
                print("Authorization flow was manually canceled by user!")
            case .error(_, let description):
                print("\nError In app delegate: \(description)\n")
            }
        }
        return true
    }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;In my view controller I'm calling my auth this way:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(true)
        authDropbox()
    }
    
    // 1. Begin the authorization flow
    func authDropbox() {
        DropboxClientsManager.authorizeFromController(
            UIApplication.shared,
            controller: self,
            openURL: { (url: URL) -&amp;gt; Void in
                UIApplication.shared.open(url, options: [:], completionHandler: { (finished) in
                    if finished {print("finished")}
                })
        })
    }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas&amp;nbsp;where I am going wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks so much - Wayne&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:10:59 GMT</pubDate>
    <dc:creator>westsider</dc:creator>
    <dc:date>2019-05-29T09:10:59Z</dc:date>
    <item>
      <title>SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292192#M17832</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm following the SwiftyDropbox documentation for my project, and have gotten as far as having my app switch to authenticating via web login thru safari but it just hangs there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I build on an actual device and have the Dropbox app, I log in without a problem but I want the safari / web login to&amp;nbsp;work as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've named my app the same in Xcode and Dropbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm&amp;nbsp;using Alamofire (4.5.1) SwiftyDropbox (4.6.0), Xcode&amp;nbsp;9.4.1 Swift 4. Deployment target 10.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Keychain sharing is on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't&amp;nbsp;see anything in output&amp;nbsp;to show me where I'm going wrong:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;2018-08-17 10:45:08.792346-0500 Pic Droper[9957:299305] -canOpenURL: failed for URL: "dbapi-8-emm://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2018-08-17 10:45:08.958285-0500 Pic Droper[9957:299305] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/15slim/Library/Developer/CoreSimulator/Devices/ABA24F85-62A1-4656-AE95-25BF8E735546/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-08-17 10:45:08.959279-0500 Pic Droper[9957:299305] [MC] Reading from private effective user settings.
2018-08-17 10:45:09.018774-0500 Pic Droper[9957:299305] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2018-08-17 10:45:23.442747-0500 Pic Droper[9957:299305] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Podfile:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;# Uncomment the next line to define a global platform for your project
  platform :ios, '10.1'

target 'Pic Droper' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Pic Droper
  pod 'SwiftyDropbox'

end&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;In my app delegate&amp;nbsp;I have the following with my actual api&amp;nbsp;key replaced:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&amp;gt; Bool {
        
        DropboxClientsManager.setupWithAppKey("api-key-replaced")
        return true
    }

    // 2. Handle redirect back into SDK
    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -&amp;gt; Bool {
        if let authResult = DropboxClientsManager.handleRedirectURL(url) {
            switch authResult {
            case .success:
                print("Success! User is logged into Dropbox.")
            case .cancel:
                print("Authorization flow was manually canceled by user!")
            case .error(_, let description):
                print("\nError In app delegate: \(description)\n")
            }
        }
        return true
    }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;In my view controller I'm calling my auth this way:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(true)
        authDropbox()
    }
    
    // 1. Begin the authorization flow
    func authDropbox() {
        DropboxClientsManager.authorizeFromController(
            UIApplication.shared,
            controller: self,
            openURL: { (url: URL) -&amp;gt; Void in
                UIApplication.shared.open(url, options: [:], completionHandler: { (finished) in
                    if finished {print("finished")}
                })
        })
    }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas&amp;nbsp;where I am going wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks so much - Wayne&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:10:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292192#M17832</guid>
      <dc:creator>westsider</dc:creator>
      <dc:date>2019-05-29T09:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292210#M17833</link>
      <description>&lt;P&gt;We're getting the same problem in our production app that had been working until recently.&lt;/P&gt;&lt;P&gt;The issue seems to be with webkit preventing cross-site-scripting between Dropbox and the Google reCAPTCHA system.&lt;/P&gt;&lt;P&gt;Hopefully this is resolved soon as it is affecting users of our app.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 16:45:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292210#M17833</guid>
      <dc:creator>picnicbob</dc:creator>
      <dc:date>2018-08-17T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292217#M17834</link>
      <description>Thanks for the reports! We'll look into it.</description>
      <pubDate>Fri, 17 Aug 2018 17:07:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292217#M17834</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-17T17:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292262#M17841</link>
      <description>I'm having some trouble reproducing this. Can you let me know:&lt;BR /&gt;- Are you still seeing this issue?&lt;BR /&gt;- What specific version(s) of iOS are you seeing it on?&lt;BR /&gt;- Are you seeing this in the simulator, or only on the physical devices?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance! &lt;BR /&gt;</description>
      <pubDate>Fri, 17 Aug 2018 20:21:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292262#M17841</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-17T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292267#M17842</link>
      <description>&lt;P&gt;The issue seems to have resolved itself for the time being.&lt;/P&gt;&lt;P&gt;This was on multipe iPhones running the latest non-beta iOS 11.4.1, in an iOS sim, and I was able to reproduce it in Safari&amp;nbsp;11.1.2 ( 13605.3.8 ) on my mac posing as&amp;nbsp;an iOS 11.0 iPhone user agent.&lt;/P&gt;&lt;P&gt;Did you get a Google reCAPTCHA to show at all during login? The issue seemed to be expecting it&amp;nbsp;to be shown when it could not be.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 20:43:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292267#M17842</guid>
      <dc:creator>picnicbob</dc:creator>
      <dc:date>2018-08-17T20:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292268#M17843</link>
      <description>&lt;P&gt;Thanks for following up! I'm glad to hear this is working now. Please let me know if you see the issue again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, I was able to trigger the reCAPTCHA successfully in my testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/763906"&gt;@westsider&lt;/a&gt;&amp;nbsp;Likewise, please let me know if you're still seeing this.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 20:46:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292268#M17843</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-17T20:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292270#M17844</link>
      <description>Ok. I haven't been able to trigger a reCAPTCHA so I can not confirm that that problem has been addressed, only that I can successfully authorize again because no reCAPTCHA is shown.</description>
      <pubDate>Fri, 17 Aug 2018 20:51:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292270#M17844</guid>
      <dc:creator>picnicbob</dc:creator>
      <dc:date>2018-08-17T20:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropBox Auth Hangs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292280#M17847</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I agree, the&amp;nbsp;issue seems to have resolved itself for the time being. I am able to get a good login from both the browser and the DropBox app, from within my app...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alamofire (4.5.1) SwiftyDropbox (4.6.0), Xcode&amp;nbsp;9.4.1 Swift 4. Deployment target 10.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was using the simulator and also and an actual device -&amp;nbsp;iphoneX&amp;nbsp;running 11.4.1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 21:33:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropBox-Auth-Hangs/m-p/292280#M17847</guid>
      <dc:creator>westsider</dc:creator>
      <dc:date>2018-08-17T21:33:56Z</dc:date>
    </item>
  </channel>
</rss>

