I think I got this working, I am going to have to submit some updates. But the way this believe it or not this is the same a google play cloud save
You may have to do two requests.
I am making some new apis to make this easier
This has been added in 2.0
https://forums.coronalabs.com/topic/65160-google-drive/
Please note I have not tried uploading zip files to app data folder
Thanks so much dear Scott.
I going to test with it.
Best regards,
Hi all. Dear Joshua, is there any way to backup files to google drive? I’m eeveloping an app target to iOS and Android. For iOS there is a solution due Corona support iCloud services, but i can’t find any solution to use Google Drive. There is any chance to do it? Thanks in advance and thanks for you all team great job
You could use a cloud services like Coronium or Parse(via your own sever).
But if you really want to use drive, you should go purchase the oauth2 plugin. You can get things done with it. You may have to mod the plugin a hair but I bet you can get things going with that.
What Scott has mentioned is probably the best solution.
We do plan on looking into Google’s backup feature in the future (no ETA yet), but realize that it’s an Android 6.0 feature only, which only has a small Android market share. So, a 3rd party solution would be the best solution for the moment.
Another thing to note, I some times forget about this, Amazon whisper sync could back up some data and sync across andoid and Amazon devices
Thanks very very much for your answer.
I’have bought the OAuth2 lua as suggested. Now I’m trying to configure it to access to Google Drive. It is a little confused.
If I can, I will try to contribute with a guide to do it. At the moment I’m a little lost. Need to read all the Google Drive Documentation. The only I need is to be able to send a file to google drive (Application Folder) and Get it when restore backup. The most complicated is the authorization and tokens.
If I can do it, I will let you know and publish the correct way. I have not found a simple documentation to do it and think it is necessary.
Thanks so much all for your excellent support and answers.
Regards,
You should make a plugin 
Also on authorization, ping me I think a have modified auth2 Lua file on Dropbox some where where I used googles services( scottrules44@gmail.com). I would share it with everyone but oauth2 is a paid product.
Dear Scott,
Thanks for your answer.
I have bought the oAuth2 Extension. But it don’t comes with the configuration values to use with Google Drive. I’m reading all the Google Drive API Documentation and it is terrible… :wacko:
I think this extension can be used with all sites that uses OAuth2 to connect (Google Drive, DropBox, BufferApp, Foursquare, Smartthings, GumRoad, …) but appear that different sites has different variables. I can’t found Google Drive configuration.
I registered for the OAuth2 in Google Drive for my app, and download a son file that contain the following values:
{“installed”:{“client_id”:"<myClientId>",“project_id”:"<myProjectId>",“auth_uri”:"https://accounts.google.com/o/oauth2/auth",“token_uri”:“https://accounts.google.com/o/oauth2/token”,“auth_provider_x509_cert_url”:“https://www.googleapis.com/oauth2/v1/certs”,“client_secret”:"<secret_Client>",“redirect_uris”:[“urn:ietf:wg:oauth:2.0:oob”,“http://localhost”]}}
How can I use this with the oAuth2 extension I have bought?
I see other values to set there like:
– BufferApp
url_authorization_buffer = "https://bufferapp.com/oauth2/authorize"
url_access_token_buffer = "https://api.bufferapp.com/1/oauth2/token.json"
url_access_profiles_buffer = "https://api.bufferapp.com/1/profiles.json"
url_user_buffer = "https://api.bufferapp.com/1/user.json"
client_id_buffer = “<Client ID>”
client_secret_buffer = “<Client Secret>”
Terrible… Any suggestion?
Thanks again to all. If I can perform a widget I will share for sure. I’d love to perform an easy widget that can support Google Drive, DropBox… only to write and read for the application folder, and easy to use, for sure, depending of the oAuth2 extension that need to be buy. But I can perform a widget with can be used like the follow:
local gDrive = widget.googleDriveNew(…)
gDrive.putFile (file)
gDrive.getFile (file)
for sure, with dependency of the oAuth2 extension.
Any help?
Thanks again…
my email is cnksoftware@gmail.com
:wacko:
First off just done on vacation, second let me take a look
Thanks very much dear.
If I find any I will let you know too.
Regards,
Just a quick update, i did have lots of success. The biggest problem is uploading files. Google is very specific on how the want multipart data and corona does not support multipart data. Thier is a module made long ago (class_multipartData.lua), which does not meet googles requirements. So I have to do lots of modification.
Update 2: google drive plugin is complete, now working on documentation and sample.
Dear Scott¡ good news. Excellent job. Dear, where can i find your sample and documentation? Possible to share it? Thanks again!
Here is docs and example
https://scottrules44.com/plugin#GoogleDrive
“But scott where is the plugin”
Glad you asked, it is currently on its way to the corona marketplace for the low price of free.
Wow, thanks so much for your excellent job and very quick answer. I’m going to check it. Amazing dear. Thanks again!
Dear Scott, any news about the plugging? I’m in expectation for it.
I was reading at your web and it must be amazing.
Do you know if it will last many time to publish in Corona Plugging Store?
Thanks again dear, Great Job!
Corona is making some updates to their marketplace, I have pokeing corona as much as I can to try to get this plugin out. I submitted July 11.