Google Drive mobile offline app - google-drive-api

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.

Related

How to view files added through Google service account?

I need to create .NET console app to upload/download files to a user's Google drive.
I tried it using service account authorization. But I am not able to view the uploaded files using web UI. I am able view the list of files uploaded using my console APP. But I would like to know whether User Google Drive and files uploaded using my APP are located in different location.

Access Google Drive Application Data Folder Cross-Platform App

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.

How to tell if user of a Google Drive SDK app installed via Chrome Web Store vs. a user whose domain admin installed it

We have an app in both the Chrome web store and the in the Google apps marketplace that interacts with Google Drive. Under the covers, they are both the same app, even though they are installed from different places.
In the Drive integration settings, we provide a URL to open Drive docs with. This URL is the same for both drive and apps users.
Is there a way to determine which type of user is hitting that endpoint we provided? Whether they are working as a user from a Google Apps domain, or if they are a consumer who is working under their own account?

Google Drive iOS native application URL schemes

I found that native iOS app for google drive which can be downloaded from AppStore supports URL scheme:
googledrive://
Is there any documentation to this scheme or something where can I find how to authorize my application using google drive native iOS application?
Is it even possible to authorize application this way?
Is there other way to authorize then via web browser?
If you would like to integrate Google Drive into your iOS application you should use Google API's Objective-C client library which has Google Drive support.
For authorization specifically the client library will use a Web view to initiate an OAuth 2 flow.
You can have a look at the sample application that uses Google Drive.
As for the iOS native Drive application there is currently no way to interact with it. Though if we do we are likely to add these features to the Objective-C client library anyways :)

Integrating with Google Drive from a Chrome packaged app

Is there a way to make a Chrome packaged app integrate with Google Drive? Specifically, I'm looking to make an app that will sync user's files to Google Drive, be packaged (not hosted), and not have to rely on a secondary add-on app.
However, when a user opens a file from the Google Drive interface, I can't make Google Drive redirect to my packaged app, can I?
No, this is not possible currently. You need a hosted app to receive the redirect from the Google Drive user interface.
If you don't need to handle a redirect from the Drive user interface, you can create a Google Documents List API application that manages a user's files in their Drive. This can e a non-hosted, packaged app.