We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
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.
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-DBDropbox 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.
- DimMalyshExplorer | Level 4
Thank you friend! I changed the place of the function authorizeFromController:controller:openURL call and it all worked!
- DimMalyshExplorer | Level 4
It's my .plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>dbapi-8-emm</string>
<string>dbapi-2</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>db-h0tdpp8hmg0pj17</string>
</array>
<key>CFBundleURLName</key>
<string></string>
</dict>
</array>
</dict>
</plist> - DimMalyshExplorer | Level 4
it's my ViewController.m:
- DimMalyshExplorer | Level 4
... but there is no authorization form when starting the program
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,876 PostsLatest Activity: 5 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!