babybuddy / babybuddy-for-android

Android client for the Baby Buddy webapp
MIT License
16 stars 6 forks source link

Rework data pulls #7

Closed MrApplejuice closed 2 years ago

MrApplejuice commented 2 years ago

Currently, the app polls the server-timer list every second for a given child. However, the pulls are only working for timers right now and are implemented in a clumsy way within a UI-class.

The current design does not implement good practices like exponential backoff in case servers are overloaded.

In addition, it would be great to be able to poll other things than just timers (timelines, children lists, etc) and react to changes of those as well.

The polling logic should be extracted and made more effective/approachable.

MrApplejuice commented 2 years ago

Implemented:

Commit aa574ce6206653b8a20f10367a8067c206aaf5ee