Access Google Drive Application Data Folder Cross-Platform App - google-drive-api

I have an app to which I'd like to add cloud sync for the application's data files.
The desktop version of the app is written in Java and runs on Windows, OSX, and Linux. mobile version is an Android app. To further complicate matters, the Android app is available in two versions, free and paid, with different package names.
Google Drive API allows files to be stored and manipulated in an application data folder. Is it possible for all of the above versions of the app to share the same application directory? What exactly constitutes an "application"?
If the Android app is uninstalled, will the application folder be removed?

A drive app is distinct from an android/desktop/web app. All of those can use the same drive app. The drive app is the entry in the developer console. Just use the same developer console app id and credentials in all your variants.

Related

Access website localstorage data from a Chrome Packaged App

I'm building a packaged app that's meant to interact with a website I wrote to get its localStorage data and send it to other devices using bluetooth. This seems like it would be easy with an extension, however with an extension I would not have access to chrome's bluetooth API. I'm not sure this is even possible, but if it is, how would I go about accessing and communicating with the website using the packaged app?
The answer is that you can't. The two local storage repositories are distinct ("sandboxed"), and one can't access the other.
If this website wants to make data available to any other website, or to a Chrome App, it should put it someplace on the server, accessible via a URL, and then the Chrome App can easily access it. But, there's no way to effect such sharing with the data on the client.
Two Chrome Apps can share data locally, because they can access the local file system. However, web apps (HTML/JavaScript loaded from a server) can't access the local file system, only a sandboxed file system.

Is metro/store app destop or web based

I know what is metro app (just did some research) my question is where metro app runs. By my understanding :
Detktop app: running on your local machine with .net framework, and present data to user, you can launch/close it.
Web app: Publishing on IIS server, running from server render html to client, user can send request and get result.
Now, Metro app: is it just distributed on windows store, user can download/install it and run from local as same as desktop? or run from store, render something to user like web? or maybe some new working styles, can user close it?
Metro Style App was a working name before Microsoft settled on Windows Store Apps.
Windows Store Apps just like desktop apps run on local machine, but are often architected in more modern ways where the app would often connect to web services or push notifications that run in a data center. The UI though usually runs on local machine even if it is written in html/js with winjs.
The biggest difference is distribution - web apps run on the server so you only need to navigate to them in your browser to run the latest version. Desktop apps need to be installed - either with xcopy-style install, Windows installer or perhaps the ClickOnce technology. Store apps are distributed through the store which makes them easier to install and update than desktop apps as well as monetize, but are sandboxed (have limited access to local machine resources) for security.

Google Drive mobile offline app

I'm developing a mobile app that will have hyperlinks to a user's Google Drive documents. If the mobile device is offline, will the hyperlinks still function if the mobile device owner has installed the Google Drive Android/iOS app? i.e. does document URL retrieved online work for offline access?
Google Drive Android/iOS app downloads online files to local storage and serve from the local file system when device got offline. You should follow a similar approach.

difference with google drive SDK installed application and web application

I'm going to access with Google drive SDK. should I Create installed application configuration or web application configuration in order to access API? what is the main difference?
answer of difference is that:
https://developers.google.com/accounts/docs/OAuth2#scenarios

Google Chrome hosted app vs packaged app

I am confused about Chrome hosted app vs packaged app.
Hosted app
- is where we hosted our web in server side
- Required internet
Packaged app
- hosted the website in client site
- Just like a native app
- No internet require.
I am interesting in Packaged app but can I make the packaged app just like drive.google.com or gmail?
When they are offline then using packaged app and when they are online and start syn the pending offline files to server. Or packaged app is just everything in offline?
This might help you out.
https://developer.chrome.com/webstore/choosing
Anyway you will have to host Packaged App if you want it cross platform i.e. web, mobile etc.
If you want any functionality offline and online you want to go with the Packaged App. One way you can think about it is Packaged App download all the files required to run to the local machine. With Hosted Apps, all those files live on a web sever somewhere.
Packaged Apps are just like like regular web apps, but they have extra capabilities that allow them to run offline.
Also, Packaged Apps are not required to support offline.