cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

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: 
Highlighted

Login page "Sign In" button not working

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
Highlighted

Re: Login page "Sign In" button not working

Dropboxer
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
Highlighted

Re: Login page "Sign In" button not working

Dropboxer
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

Highlighted

Re: Login page "Sign In" button not working

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?

Highlighted

Re: Login page "Sign In" button not working

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. 

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?