You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@klimeryk Thanks for this app! I wanted to use it, but I didn’t want to keep the app open all the time. I also wanted to receive notifications, see my watch face, etc. So, I modified the application to spawn a temporary background process that notifies the user when a Pomodoro session or break is over.
I also noticed many reviews mentioning battery drain. I haven’t used the app long enough to observe this myself, but perhaps this change helps mitigate the issue since the app is only active when the timer runs out.
Some limitations:
Garmin requires a minimum of 5 minutes for a temporary background process. As a result, the shortest possible Pomodoro or break duration is now 5 minutes instead of 1. (But who would want anything shorter than 5 minutes anyway?)
Resources cannot be accessed in the background, so the notification text is now hardcoded in the codebase and always in English. (Do you happen to know a way to access resources in the background?)
Thanks for submitting the PR, @JoshGlue! Appreciate it, truly.
I definitely agree that the app could benefit from running in the background (and I really like your approach, from a quick glance!). Or other newer features like glances, widgets, etc. The problem is that I'm trying to keep it compatible all the way to CIQ 1.2.0, or at least 1.4.0, with as many legacy devices as possible.
So at the very least, this background mode would have to be optional and/or a fallback for devices that don't support it needs to be provided. Which is why I never got around to doing it 😓 It's not impossible, just never got around to trying it out. I can try to add some guards since your PR is a great starting point, or if you feel like it I can leave it to you 🙇
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@klimeryk Thanks for this app! I wanted to use it, but I didn’t want to keep the app open all the time. I also wanted to receive notifications, see my watch face, etc. So, I modified the application to spawn a temporary background process that notifies the user when a Pomodoro session or break is over.
I also noticed many reviews mentioning battery drain. I haven’t used the app long enough to observe this myself, but perhaps this change helps mitigate the issue since the app is only active when the timer runs out.
Some limitations:
Garmin requires a minimum of 5 minutes for a temporary background process. As a result, the shortest possible Pomodoro or break duration is now 5 minutes instead of 1. (But who would want anything shorter than 5 minutes anyway?)
Resources cannot be accessed in the background, so the notification text is now hardcoded in the codebase and always in English. (Do you happen to know a way to access resources in the background?)