Collapse icon indicating copy to clipboard operation
Collapse copied to clipboard

[Request]: Sync/save playtime between devices via authentication

Open pha1n0q opened this issue 1 year ago • 5 comments

Is your request related to a problem?

No

How is the feature request related to the problem?

No response

Describe your proposed solution

It would be cool to have a feature where you can upload, save, and sync playtime between devices by logging in via Github, Google, etc.

Describe alternatives you've considered

Manually editing the playtime, but this obviously doesn't really fix the 'problem' of syncing playtime between devices.

Additional context

The sign-in/sync button could be in the Edit Playtime pop-up, in between the Change and reset button. image

If synced via Google, maybe it could be integrated via Google Drive? I know that Delta uses Google Drive syncing and it somehow doesn't even count towards your storage quota??? (For example I had a 500MB game stored/synced through there and after removing the game from the sync, my Google Drive's used storage didn't go down) If it would be of any use, the only storage related permission Delta asks for is See, create, and delete its down configuration data in your Google Drive.

If there are two synced devices playing the same game and region at the same time, I'd personally prefer that the same time would just be counted once, rather than the time being counted seperately.

e.g. if the example below was a timeline of minutes (=) spent playing,

PC 1: =====
PC 2:   =====
Time added: 7 minutes

pha1n0q avatar Sep 01 '24 23:09 pha1n0q

Quoted from an answer to this suggestion I gave on the discord a few months ago :

"Hi~

Thanks for the suggestion, unfortunately due to our strict data collection policy, we are currently unable to implement this feature. Afraid not, shall we change our mind about this kind of data and feature, we will update this ticket."

Sloweneuh avatar Sep 05 '24 18:09 Sloweneuh

Quoted from an answer to this suggestion I gave on the discord a few months ago :

"Hi~

Thanks for the suggestion, unfortunately due to our strict data collection policy, we are currently unable to implement this feature. Afraid not, shall we change our mind about this kind of data and feature, we will update this ticket."

rip to this idea :( I'll keep this issue open in case they do change their minds

pha1n0q avatar Sep 05 '24 18:09 pha1n0q

Like I said before, its our own data collection policy, which we definitely could change, but with a clear mind. If anyone have suggestion, is there any database collection service that doesn't charge much (preferably free) and has C# library supporting it.

Cloudflare D1 does have free service, but limits to 100K line writes/day, which technically sufficient for current Collapse estimated user count, but maybe not for long, especially if user wants to sync them up quite often. D1 also doesn't really have C# library or documentation supporting it, so it would be quite the work implementing it

bagusnl avatar Sep 08 '24 15:09 bagusnl

The Google Drive API that Cactism suggested would definitely work, and is the one used by other Hoyoverse community tools.

Sloweneuh avatar Sep 28 '24 12:09 Sloweneuh

Google integration might be too complicated since OAUTH and stuff currently I made a prototype that uses SQLite database, synced to server. This way no data comes through us as its handled entirely by third party, which the user could make their own account that is separate from Collapse's team DB)

Each user will need to have their own database but they can make themself in turso https://turso.tech (my free account could handle at the very least 300-400 users, but we can't ship the database' Token as its a security risk)

No UI or whatever right now, since I just finished the backend of things, but let us know what you all think about it

bagusnl avatar Sep 28 '24 19:09 bagusnl

It sounds like a good idea! I'll be sure to test it out once it comes out

pha1n0q avatar Oct 11 '24 20:10 pha1n0q