Search code examples
c#xamarinfile-uploadxamarin.androidgoogle-drive-android-api

Xamarin Native: How to connect to google drive and save a file


I'm working on Xamarin Native app ( Not xamarin.Forms ) and I want the app to be able to connect to the google drive of any email e.g johndoe@gmail.com and save some files. I have searched to no avail but can't find an explicit example which uses Xamarin native to achieve that. Does anyone have some suggestions?

As suggested in the comment, I am not trying to connect to any email address, I'm trying to connect to the email address of the phone on which the app is running.

I installed the nuget package google.services.drive but I can't find any example of how to use the package. The one example i saw was using visual studio components which has now been depreciated in visual studio 2017/2019


Solution

  • I think you can use Google Drive API: https://developers.google.com/drive/api/v3/about-sdk