Sync files generated by Cordova in IOS app with cloud servers

Asked

Viewed 151 times

1

In accordance with previous question,

I am developing an application and part of the functionality of it is to run a kind of CRUD in directories and files through an IOS application, which based on the answer of the previous question will be done through Cordova using requestFileSystem.

The application is based on the IONIC framework, which in turn uses Cordova and Angularjs resources.

The question now is about the possibility of synchronizing this cloud "CRUD" as a backup form. For example with an API.

So I’d like to know:

I can use a server like Google Drive, Onedrive, Dropbox, or others for this feature?

If so, how can I do it?

Please note that files will be first created by the application through the requestFileSystem and later stored on one of these servers or can only be created and manipulated directly on the server disregarding the requestFileSystem.

  • Are you using any server or your app works alone?

  • It works independently, without server.

  • Well, I advise using a server, since to upload the files you will have to provide credentials. It would be unsafe to let the upload directly.

1 answer

1


You can do it using the Dropbox api yourself. I advise you to create your own api, because you will need to provide sensitive data to access the Dropbox, and it is unsafe to do so by the customer, as the data can be easily intercepted. Choose the language that suits you best to stop creating the backup api and then use Dropbox, it has libraries ready for that in several languages, and the implementation is very simple.

Vide: https://www.dropbox.com/developers

  • +1, but considering the fact that only I will have access there is this data in Dropbox and I am looking for an alternative to reduce costs, if I use Oauth 2.0, still this process done in client-side becomes unsafe?

  • Yes, someone could intercept the requests the app is making, take your api credentials and have access to the data of all your users in Dropbox

Browser other questions tagged

You are not signed in. Login or sign up in order to post.