You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

brduffy's avatar
brduffy
Explorer | Level 4
6 years ago

Login page "Sign In" button not working

I have read through the readme file for SwiftyDropBox and followed all of the directions. The app compiles without error. When I run in the simulator and click the button I have setup to connect to the appropriate code to launch the auth workflow the page loads but no images are included. there are question marks in place of the images. The "Sign in" button is visible and I can enter my email and password for DropBox but clicking on the sign in button does not do anything. I have made sure that I am passing the topmost view controller ... 

 

            var topController = UIApplication.shared.keyWindow?.rootViewController
            while let presentedViewController = topController!.presentedViewController {
                    topController = presentedViewController
                }

DropboxClientsManager.authorizeFromController(UIApplication.shared,
                                                          controller: topController,
                                                          openURL: { (url: URL) -> Void in
                                                            UIApplication.shared.openURL(url)
            })

I have included the necessary code in my app delegate with the proper app key. When I hit "done" on the page I get the 

"Authorization flow was manually canceled by user!" message in my console properly. 

No idea what is going on here?! 

XCode version 10.1

IOS SDK 12.1

iOS Simulator:  12.1: (16B91)

SwiftyDropBox v 5.0

  • Thanks for the report! The same setup is working correctly for me currently. 

    Based on your description, it sounds like the browser was unable to load certain resources for some reason. (You mentioned that the images weren't loading; there are other resources loaded from the same sources that are necessary for that page to function. If they can't be successfully retrieved, the page would break like that.)

    Is there any particular reason your network connection wouldn't be able to access particular resources/domains (especially the ones listed here)? For instance, is there any proxy, firewall, or other network or security software that may be interfering? 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the report! The same setup is working correctly for me currently. 

    Based on your description, it sounds like the browser was unable to load certain resources for some reason. (You mentioned that the images weren't loading; there are other resources loaded from the same sources that are necessary for that page to function. If they can't be successfully retrieved, the page would break like that.)

    Is there any particular reason your network connection wouldn't be able to access particular resources/domains (especially the ones listed here)? For instance, is there any proxy, firewall, or other network or security software that may be interfering? 

    • brduffy's avatar
      brduffy
      Explorer | Level 4

      Maybe,

      But I have tested it both at home and at work now and I have the same problem. Also, I can load Apples website in the simulator and I get all of the images on that page. Maybe its some kind of setting in the simulator itself? A javascript setting perhaps?

    • brduffy's avatar
      brduffy
      Explorer | Level 4

      Awwww man! It was my AVG Anti-Virus. I installed that on my Mac like three years ago and haven't heard a peep from it since :-D.