babybuddy / babybuddy-for-android

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

App shortcuts / home screen widgets #83

Open gingerbreadassassin opened 2 weeks ago

gingerbreadassassin commented 2 weeks ago

Would be very nice to have shortcuts to various activities available from the home screen, so that they can be start/stopped without opening the app

Extra points for lock screen shortcuts

MrApplejuice commented 1 week ago

(deleted old content which was meant for #82)

Posted my answers on the wrong issue... shortcuts on the app-screen are definitely possible. This project actually started out as a project called "BabyBuddyWidgets", so this was definitely the plan from the get-go. However, live widgets will suffer from the same problem I outlined in #82. I could maybe envision simple shortcut buttons for starting and stopping timers locally though and then the baby buddy app could simply upload the started/stopped even to the server.

This then bypasses the need for polling an external server-side timer, but has the unfortunate side effect that the timer would not be shared among different devices. Maybe it is also possible to only do the polling while a widget is visible. This in turn could address the issue of creating a "battery drainer".

I think that this feature is easier than #82!