cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Login page "Sign In" button not working

Login page "Sign In" button not working

brduffy
Explorer | Level 4

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

1 Accepted Solution

Accepted Solutions

Re: Login page "Sign In" button not working

Greg-DB
Dropboxer

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? 

View solution in original post

3 Replies 3

Re: Login page "Sign In" button not working

Greg-DB
Dropboxer

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? 

View solution in original post

Re: Login page "Sign In" button not working

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?

Re: Login page "Sign In" button not working

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. 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    brduffy Explorer | Level 4
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?