TemplateStudio icon indicating copy to clipboard operation
TemplateStudio copied to clipboard

add integration with OneDrive

Open imnbwd opened this issue 7 years ago • 6 comments

add integration with OneDrive, so that the local data can be automatically or manually synced to OneDrive

imnbwd avatar May 18 '17 03:05 imnbwd

Hi @imnbwd, do you mean to use OneDrive as a generic roaming data store? Currently, Settings feature provide a way to access the roaming profile (with the limits in storage size the it has). Are you thinking in have increased storage size?

Thanks.

ralarcon avatar May 18 '17 06:05 ralarcon

Yes, what I mean is I want there is a data sync option, which is OneDrive. That is, the user can sync the app data files to their OneDrive.

Suppose it works in this way: If I check that option in the wizard, OneDrive package (maybe also including the related authentication packages for OneDrive) will be added to the project, a basic class containing some methods(such as upload/download/delete file, check file exist ...) is also provided, maybe a page consuming that class is also provided, that's all. There are a few apps possessing such a feature, just like these 2 apps of Microsoft: Office Lens, Fresh Paint.

imnbwd avatar May 18 '17 07:05 imnbwd

@imnbwd We're going to be looking at doing more with different data stores in a future version. Looking at things like databases, web content, etc.

The community toolkit has a wrapper for calling the OneDrive Service so you can do things like authenticating and file access. It doesn't do any automatic syncing but would including this service be sufficient for your needs?

mrlacey avatar May 18 '17 13:05 mrlacey

I'm still thinking how this would be added as it feels very tied to your own apps logic. A background task we can wire up, this feels very tied to how an app would want to implement the feature.

There also is the ApplicationData.RoamingFolder, while limited space, does roam with your using. https://msdn.microsoft.com/en-us/library/windows/apps/hh465094.aspx

Here is the screenshot from Fresh Paint. capture

crutkas avatar May 18 '17 17:05 crutkas

@imnbwd can you provide more information here on your scenario? Not just implementation. They are storing large files, not settings.

crutkas avatar May 25 '17 17:05 crutkas

Optional Login can be used with oneDrive

Javier118 avatar Jul 02 '21 08:07 Javier118