Comments
-
OK this is the forum for Dropbox API - ie developers who use Dropbox within their own apps. So I was talking about my own app crashing. I assume there's a forum board for problems with the actual Dropbox app - you might want to post your issue there, maybe someone could help.
-
What app are you talking about? The Dropbox app itself?
-
So, I migrated my account. And when passing 'nil' for the scope argument, I can unlink, then relink, and it works. If I want to start using the scope argument then I just need to figure out which scopes I'm using and pass them all there when I call authorize?
-
Thanks for the reply. I did change to the V2 version of authorizeFromController, but I did not manually Unlink and relink. Users will not know to do that. If getCurrentAccount failed, should I check to see if the message is "expired access token" and then have my app unlink them? I don't know anything about scopes - this…
-
Thank you - it does help, but I am not sure what I need to do differently? I did change the flow to the new calls, but do I need to do something specifically to store this new short-lived token? The GitHub docs don't seem to indicate that...
-
Going over the Github documentation, I suspect this is happening because I still use the long-lived token and had not switched to the V2 version... So ... I switched to using the "newest" method with DBScopeRequest, but now it will no longer authorize even temporarily. It does not open the Dropbox app or Safari to…
-
This is iOS. According to the Info.plist in the Dropbox framework, it's version 3.6.2. When the app first starts I see this, not sure if it is important: -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0xxxxxxx) [/System/Library/Frameworks/Foundation.framework]' for key…
-
I got this resolved by updating the Dropbox SDK to the latest version. Not sure why it was crashing before, since the 'unrecognized selector' should have been recognized once I added the completion block argument...
-
Looking into this crash, it looks like the handleRedirectURL call now takes a completion block? I'm not sure how my app was working before if this was the case - weird. But in any case, I changed the code to call with a completion block, but I still get the same 'unrecognized selector' error. Any ideas what the problem is?…
-
Why am I getting a Dropbox almost full email? It even says it won't save any new changes. Is this spam? I am using less than half of my Dropbox space.
-
Okay I finally got this by grepping the SDK folder for "uploadData" and finding the true arguments to this function. I had "Modified" spelled wrong, and there was an additional argument 'strictConflict' that was missing. The working call looks like this. [[[[DBClientsManager authorizedClient].filesRoutes…
-
I'm getting an "unrecognized selector sent to instance" for uploadURL. Trying to update to newest SDK from the old one that supported iOS 8. Those links you posted are broken. Is uploadURL gone? What's its replacement???
-
Hey Greg, - How can I tell the SDK version? I think it is 3.0.11 because I have this for my Cartfile: “github "https://github.com/dropbox/dropbox-sdk-obj-c" == 3.0.11” I think I have that because it is the last version to support iOS 8, is that correct? - the iOS version is 10.3.1 - this is the code:…
-
Ah, that makes sense. Thanks for helping me find the problem in my app! Bob
-
Hey Greg, As far as I know, there is nothing different about the project. I just added the print statements to print out the value of sharedOAuthManager. That's the standalone project you linked to earlier in this thread. Bob
-
Hey Greg, here is my DBRoulette project, in case you want to try it out. I'd be curious to know whether the assert fires for you. https://www.dropbox.com/s/teyv6nmhhyfmzyu/dropbox-sdk-obj-c-master.zip?dl=0
-
I tried putting that exception in the main body of DBRoulette, right after the commented out setupWithAppKey line, and it terminated with the same error you got. But it doesn't seem to fire within the SDK library. Probably unrelated, but it also seems weird to me that when I step into that function, my controller and…
-
Huh - I don't get anything. I wonder if I have exceptions turned off somehow?
-
Hey Greg, Well, I could swear I checked the value of sharedOAuthManager and it was nonzero, but now it shows zero when I do not call setupWithAppKey. However, it doesn't make any difference - even when it is zero, I still don't see any error message. I tried it with DBRoulette and got the same results. What happens for you…
-
Hey Greg, Finally found it. I was skipping the call to DBClientsManager setupWithAppKey! It was in there, but I was mistakenly skipping it when my app had stored the preference that Dropbox was disconnected. It's weird that that produces no error messages. I found the problem by stepping in the debugger into…
-
I see. So what would I put in the CartFile to make it download version 3.0.11, to continue supporting iOS 8?
-
Greg how do I determine which version of the SDK I have? I set my Cartfile to ~> 3.0.11, but I just noticed that in the shell when I run the update, it says Checking out dropbox-sdk-obj-c at "3.0.14". I am compiling with a deployment target of 8.0 and not getting any errors -- does that mean it would just crash on an iOS 8…
-
Man, you do not want to see this code. It is like a building that people have added multiple floors to, with extra sheds and carparks and a kitchen in back. I would be ashamed to show it to anyone, and it is freaking huge too. The one thing that makes me think it doesn't have to do with viewControllers, however, is that in…
-
Yes, it must be something specific to this app. This app is from 2008 and has some very old funky viewController stuff going on -- so I suspect it has something to do with that. It may be due to recent iOS SDK changes rather than Dropbox SDK stuff. But yeah I am testing on the same devices and simulators, same SDK version.…
-
I think part of the problem is that the documentation has not kept up with the changes -- for example, the release notes state that the browserAuth argument was dropped from authorizeFromController, but the API reference still lists it. And the example for how to download a file shows 'setResponseBlock', but it does NOT…
-
Okay. The Example app works fine. I deleted the sdk's from my apps and re-downloaded. They update fine now. I read the release notes, though -- you dropped support for iOS 8? So iOS9+ only? Too soon! I'm only just now dropping 7. I set my cartfile to 3.0.11 which looks to be the one before you dropped iOS 8 support. Should…
-
I don't understand -- this is just from trying to update the SDK. I have not even gotten to trying to open and compile my own project yet. The standalone SDK did download and update correctly, however.
-
Okay, thanks for the reply. A couple of questions: 1) If the default behavior is to open the Dropbox app, then it is more mysterious that this works in my one app but not the other. That means it doesn't really have anything to do with viewControllers, if it's really supposed to be opening the Dropbox app. Is there any way…
-
Hey Greg, In my other app, calling DropboxClientsManager authorizeFromController: works, but it opens the Dropbox app to ask for permission for the app to access its own folder. It does this even though the browserAuth argument is NO. Should it? I may try to get the DBRoulette app to run. But my dropbox-sdk-obj-c install…
-
Well, when I say it was working, I remember it working once, but I haven't tried it in a long time. I've been logged in so haven't really tested the login/logout stuff in a while. The Dropbox version is the same, I haven't updated it -- until just now, I thought I would try updating it to see if that fixed the problem, but…