stefan-niedermann / nextcloud-deck

📋 Android client for nextcloud deck app
https://play.google.com/store/apps/details?id=it.niedermann.nextcloud.deck.play
GNU General Public License v3.0
490 stars 53 forks source link

List widget is not synced with Deck App #783

Closed foo-git closed 3 years ago

foo-git commented 3 years ago

Please use GitHub reactions 👍 to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug The list widget is not automatically synced when adding/editing cards in the Nextcloud Deck App, resulting in a stale view of cards.

To reproduce Issue is reproducible with an account from try.nextcloud.com:

Steps to reproduce the behavior:

  1. Add two list widgets (List 1 and List 2) to homescreen, you should see the current state of cards as in the Deck App.
  2. Add a card in the Deck App for List 1.
  3. Go back to homescreen, card is correctly shown in List 1 widget.
  4. In the Deck App, move card from List 1 to List 2.
  5. Go back to homescreen, List 1 widget still shows view from 3, List 2 widget does not show card.

Expected behavior I expect the list widget at least to be synced upon manual changes in the Deck App. Furthermore it should get synced upon automatic/background refresh of the Deck App.

Versions

Smartphone (please complete the following information):

Are you using LDAP?

stefan-niedermann commented 3 years ago

That's a bit strange, i can't reproduce the issue. Hav you already tried to remove and readd the widget? What launcher are you using?

foo-git commented 3 years ago

First, thanks for your good work regarding the Nextcloud Apps :)

I updated the bug description, as I also could not reproduce it like that after removing/adding the widgets, sorry. Launcher is Trebuchet (Standard LineageOS Launcher). It seems that you need to move cards to trigger the bug. Edit: Strange, I just added a single card to List 1, and the widget did not update. So the original description was correct (for me).

foo-git commented 3 years ago

After some more observation I think it depends also on the time passed since the widget creation: Yesterday, directly after widget creation, the Deck App and the List widgets were perfectly synced. Some hours later of not using Deck App/List widgets, changes in the Deck App were not synced to the List widgets. Today that's still the case.

itstueben commented 3 years ago

I have the Same Problem. Some hours later of not using Deck App/List widgets, changes in the Deck App were not synced to the List widgets.

Sony Xperia 5 Standard Launcher Android 10

Ruben1992 commented 3 years ago

Hi guys,

I am experiencing the same problem. However I found a way to trigger the synchronisation: If I change my power mode (just changing it, doesn't seem to matter to what mode) the widgets suddenly refresh. So this probably has to do with a battery save program which terminates background tasks. However for me even if I have the settings on "high performance" and disable "optimise battery usage" for this app. The widget still does not sync.

Samsung S9 Nova launcher Android 10

kartoffelheinz commented 3 years ago

Same problem here, using latest Android 11 on Pixel 4 with app version 1.14.1, installed from Google Play Store.

Refreshing of List widgets does not seem to work at all. I cannot force a refresh using power mode switching as Ruben1992 suggested.

Anything I can do to help?

stefan-niedermann commented 3 years ago

@kartoffelheinz a Pull Request for #767 is of course appreciated - otherwise you will unfortunately have to wait until we reimplement the widget ourself. I don't think there is a "quickfix" for this issue. :slightly_frowning_face:

kartoffelheinz commented 3 years ago

I understand. Sadly, I have zero experience in android app development :/

Since the Widget-Filter / Upcoming-Widget seems a lot more important, I vote that you put your available time into developing / improving these, as it has much more important use cases than single stack views anyway.

Ruben1992 commented 3 years ago

I have found that the widget does synchronise, but it does take quite a long time. I havent measured how long it takes, but it is in the order of days. But I agree with kartoffelheinz, I think its better not to devote time on this, but instead focus on the reimplementation of the widget

kartoffelheinz commented 3 years ago

As an additional sidenote: The new Upcoming Widget seems to suffer from similar refreshing problems. Since I use the beta version I refrain from opening another issue for that at this time, this is just to let you know. Maybe it helps to narrow down what the problem is, as I believe the upcoming widget already uses the new FilterWidget infrastructure.

stefan-niedermann commented 3 years ago

The rewritten list widget will be part of 1.15.2. Please feel free to open new issues if starting with this version any problems occur with the list widget.

Please note that it is important to write exact steps to reproduce (e. g. "I moved a card from list B to list A on another device. I can see the changes in the Web UI and in the Android App but not in the list widget of A") - name what you have done, tell us your online status, tell us whether the changes are made on the same device or on another device or in the browser - the more detailed you describe what you have done, the better are the chances we can fix issues :)