tTimeout(function() ) Īlert('Your backup has been successfully uploaded to your Dropbox!')Īlert('Error saving file to your Dropbox!')Ĭonsole.log("failed Dropbox authentication") Try to avoid a browser crash on browser.close(). Var browser = window.open(url, '_blank') Var url = this.getAuthenticationUrl(redirect_url) This is the method from Dropbox-sdk.js file, which I have called from my application, = function (successCallback, errorCallback) This method works perfectly when the user clicks the button for the first time, but when the user clicks the button again calling this method shows a blank screen and return a new access token. I have searched for plugins for Cordova applications using Dropbox API V2 but didn't find any.So I am trying to implement it using dropbox/dropbox-sdk-js.įor Authentication, I am using authenticateWithCordova method which returns me the Access token (Full documentation here).This method returns Access token once the user completes authentication with Dropbox and uses the redirect URL to redirect the user to Cordova application. Now as the API V1 is going to be deprecated I want to upgrade to Dropbox API V2. I have a Cordova application with previous Dropbox implementation using rossmartin/phonegap-dropbox-sync-android.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |