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
DimMalysh
8 years agoExplorer | Level 4
-canOpenURL: failed for URL:
Hi! I get the following in the console: What could be the problem? Please, help.
- 8 years ago
The canOpenURL messages are expected, and can be ignored, since the "(null)" error indicates that nothing went wrong. Your plist also looks correct.
The "view is not in the window hierarchy" error message is likely indicating why the authorization view isn't being shown. It is indicating that your ViewController isn't in the window hierarchy. It appears your ViewController wasn't presented (or was already dimissed). The screenshot seems to support that, as it doesn't show anything, such as the button that would trigger your myButtonInControllerPressed. You'll need to make sure your ViewController is presented and not dismissed. Exactly how you do that would be specific to your app, and is outside the scope of Dropbox API support, so I'm afraid I can't offer much more specific guidance.
Greg-DB
8 years agoDropbox Staff
The canOpenURL messages are expected, and can be ignored, since the "(null)" error indicates that nothing went wrong. Your plist also looks correct.
The "view is not in the window hierarchy" error message is likely indicating why the authorization view isn't being shown. It is indicating that your ViewController isn't in the window hierarchy. It appears your ViewController wasn't presented (or was already dimissed). The screenshot seems to support that, as it doesn't show anything, such as the button that would trigger your myButtonInControllerPressed. You'll need to make sure your ViewController is presented and not dismissed. Exactly how you do that would be specific to your app, and is outside the scope of Dropbox API support, so I'm afraid I can't offer much more specific guidance.
- DimMalysh8 years agoExplorer | Level 4
Thank you friend! I changed the place of the function authorizeFromController:controller:openURL call and it all worked!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,909 PostsLatest Activity: 4 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!