appml / neutrinote

neutriNote - the original extensible Markdown + Math note app. Non-commerical. No lock-ins. Only 3 MB footprint & highly optimized. Designed for plaintext purists.
GNU General Public License v3.0
339 stars 23 forks source link

Widget gets no update if a note was changed #24

Closed DerSaxxe closed 2 years ago

DerSaxxe commented 2 years ago

Widget gets no update if a note was changed. How to reproduce:

  1. Click on a note at the widget to edit the note
  2. Make some changes and go back to your home screen

Thank you

My device: Xiaomi Mi 9t Pro, A11

appml commented 2 years ago

Hi, the update cycle is controlled by Android for versions after Oreo. In other words the power management of your phone's Android implementation will regulate the widget's update frequency.

DerSaxxe commented 2 years ago

That cannot be the reason because after 10 min and more the widget shows the unchanged note. Also I use at the moment D Notes at the same device and there are no problems with the widget update.

appml commented 2 years ago

What is D Note's Android build target version?

DerSaxxe commented 2 years ago

Sorry, I don't know

appml commented 2 years ago

Sorry, I don't know

Probably it is built for older versions of Android. In newer versions, the widget update capability is rather limited.

DerSaxxe commented 2 years ago

I see. But is there no other way? What about calendar widgets or music player widgets? They would useless if the widgets won't be updated.

DerSaxxe commented 2 years ago

Look at FairMail: minSdkVersion 21 targetSdkVersion 31

The Widget (message list) gets always an update if something is changing.

appml commented 2 years ago

Look at FairMail: minSdkVersion 21 targetSdkVersion 31

The Widget (message list) gets always an update if something is changing.

Good point about FairEmail. The app is using the built-in broadcast as shown in the link shared above. Widget update should work in upcoming v.4.0.5.

DerSaxxe commented 2 years ago

Now it works! You can close this issue. Thank you

appml commented 2 years ago

Now it works! You can close this issue. Thank you

Reason for closing: fixed in v4.0.5