bitfireAT / davx5-ose

DAVx⁵ is an open-source CalDAV/CardDAV suite and sync app for Android. You can also access your online files (WebDAV) with it.
https://www.davx5.com
GNU General Public License v3.0
1.27k stars 69 forks source link

Provide a widget option #622

Closed devvv4ever closed 2 months ago

devvv4ever commented 2 months ago

Placing a widget will have the benefit that Android keeps the app more in foreground, hopefully resulting in less restrictive background killing/stalling/delaying of the sync process.

This is a first proposal. We don't want a high-end widget, just a simple one with minimal functionality. Users should be able to:

grafik

exstntlmsnthrp commented 2 months ago

I would certainly love to see this added. Particularly something like the upper widget example (understanding that it will likely be different than the idea pictured)!

ArnyminerZ commented 2 months ago

I suggest using Glance to keep in line with our new line using Compose: https://developer.android.com/jetpack/compose/glance/create-app-widget

devvv4ever commented 2 months ago

@rfc2822 @sunkup @ArnyminerZ we should discuss this next week. It becomes important since background sync is really a problem now for some users (since we lost the foreground sync notification) and we should try if it gets better when they place a widget.

rfc2822 commented 2 months ago

+1 for the widget, but…

It becomes important since background sync is really a problem now for some users

Can we please track every case in https://github.com/bitfireAT/davx5/issues/520? Especially which DAVx5 version, manufacturer, firmware, accounts, settings … so that we can one day maybe find a pattern.

devvv4ever commented 2 months ago

I suggest using Glance to keep in line with our new line using Compose: https://developer.android.com/jetpack/compose/glance/create-app-widget

@ArnyminerZ would you like to give it a try with Glance :) ? I think we should go with a very simple "SyncNow" Button. Nothing else (we can provide more info later on if we want). So we could get that out in the next version and possibly improve it later on.

Do we need an additional setting for "widget preferences" for this in the DAVx5 side drawer settings?

ArnyminerZ commented 2 months ago

I'd love to work on this 😄 It's been a while since I used Glance, I think I only ever used the first alpha, so it will be fun to see what they have comed up with.

I'll keep this thread updated if anything has to be added to the "main UI", even though I don't think it will be necessary.