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 :)
Related
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.
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
Basically packaged apps do not appear on the Chrome App Store, but legacy packaged apps do. The documentation states that
Warning: All content in this doc refers to the legacy version of packaged apps. Your legacy packaged apps will still work, but you won't have access to any of the new APIs. Check out the new version of packaged apps; otherwise, you're missing out!
The question is, what will you be missing out when using a legacy packaged app instead of a packaged app ? (apart from not appearing in the Chrome App Store)
Better window geometry control (open outside of the browser), security, access to more powerful APIs, etc.
See http://developer.chrome.com/apps/about_apps.html
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.
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.