drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 131 forks source link

Unable to connect to Dropbox #149

Closed dragon64 closed 10 years ago

dragon64 commented 10 years ago

If the Dropbox app is installed on the device, Ensembles is unable to connect to the service. The Dropbox authorization screen comes up asking user to allow app access to Dropbox but every attempt fails. If the Dropbox app is not installed then connection works (although may take one of two attempts).

I have also tried this on the Idiomatic app with the following results: App from App Store: all OK App from GitHud run on iPhone via Xcode: no working

Any help would be much appreciated.

drewmccormack commented 10 years ago

Are you using your own credentials for Dropbox? You have to sign up and get keys. It could be that the Dropbox app will only authenticate apps that are in production mode. I'm not sure. You have to request your app be put in production mode at Dropbox.

The only other think I can think is that the Dropbox SDK is not right. Are you installing with cocoapods or with submodules.

drewmccormack commented 10 years ago

OK, I figured this out. When the Dropbox app is used, the main app goes to the background. This triggers a second leech. When the second leech fails -- because there is already a leech in progress -- Idiomatic was taking the error to mean it should turn off sync.

Thanks for reporting it.

See b9e3ae06dd039468b9319aa9090aa31741e18c2a

dragon64 commented 10 years ago

Beautiful. Works perfectly now. Thanks for figuring it out.

drewmccormack commented 10 years ago

resolve

On 14 Jun 2014, at 14:55, dragon64 notifications@github.com wrote:

Beautiful. Works perfectly now. Thanks for figuring it out.

— Reply to this email directly or view it on GitHub.