I want to write a small Android App and also a small Google Chrome App, which should keep their data synchronized. I decided to use Google Drive to synchronize the data.

Like Google Keep seems to do it :

Google Keep saves all your notes to your Google Drive, so everything is backed up and available, should anything happen to the original device or computer on which the notes were made.

Currently I am only working on the Android App. After searching for a way to create a hidden folder to store the data I found the Application Folder.

While this seems to be perfect for my Android App my question is: can I also access this app folder from a google chrome app?

If not is there a good way to synchronize data between an Android App and a Chrome App using Google Drive?

Thanks for your help

有帮助吗?

解决方案

"question is: can I also access this app folder from a google chrome app?"

yes

"If not is there a good way to synchronize data between an Android App and a Chrome App using Google Drive?"

There are numerous sync strategies you can employ, eg ...

  • Full refresh
  • Poll changes feed
  • Set up a push notification

Which is right for you depends on your specific preferences

其他提示

Chrome Apps for Mobile (using the cca tool) have an implementation of chrome.syncFileSystem that will use Drive storage to sync data between a chrome desktop and hybrid android app automatically for you!

The downside is that chrome.syncFileSystem does not currently use Drive Application Data folder (it wasn't available when we implemented the API).

The upside is, if you only care about syncing data, and not necessarily how it is synced, and you already want to implement a chrome app anyway, using the cca tool should really be an awesome solution for you.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top