Comments (8)
@klimeryk, this is something I would also like to see.
And do other custom applications behave this way?
The activity apps that are preinstalled (like the Run, Bike, etc.) keep their state after onBack
. I have another app (Stopwatch) that uses the onBack
for app functions instead of Ui.SLIDE_RIGHT
. To go to the watch face, you press the hardware button (I'm not sure what event this is). The app keeps its state in this case.
I'm not familiar with the Garmin SDK. Is it possible to put the app in background as you do on the Fenix 3 with the down button (not present on the Vivoactive 3) when the onBack
event occurs (and on the button press)?
from garmodoro.
Thanks for reporting! Which device have you experienced this on? What's the expected outcome? I can put the app in "background" on my Fenix 3 HR (by holding the Down button), but the thing is that's very device-dependent and Garmin did not make it consistent across devices - some support this, some don't. And apparently some have a right swap that should do that as well?
from garmodoro.
Hi Igor.Thank you for your quick response. My device is Vivoactive 3.I was expecting switch to watch face without exiting(cancellation of current pomodoro iterations) from the application.However, when I get back to application I need to start iterations from the beginning.
from garmodoro.
And do other custom applications behave this way? (they go into background) Unfortunately, I only have a Fenix 3 HR to test on (and it does not truly support background apps the way Vivoactive 3 does, I think) - and the simulator that Garmin is only good for testing the main app, but not like how the app behaves on the actual watch when it comes to putting it into background, etc. So I'm not sure if I'll be able to fix this quickly.
from garmodoro.
I will be appreciated if you will fix it. But even if you are not able to fix it ,thanks in any way. Have a nice day!May be you can show me the code line(where this behaviour is handled) of your sources?When I have time, I can try to fix it myself and properly test it on my device.
from garmodoro.
Sorry for the slow follow-up.
So, the thing is, the app doesn't have any custom handling for the onBack
event: https://github.com/klimeryk/garmodoro/blob/master/source/GarmodoroDelegate.mc#L79
It just removes the view and essentially kills the app. It used to not do that (b1bf89d#diff-bcae12df46cf81c5c2ed68100b370ced), but that created problems with other devices.
from garmodoro.
I agree that it'd be great if it behaved consistently across devices, unfortunately it's something that can only be tested when having a physical device (the simulator does not support this), so I'm limited to the Fenix 3 HR I own. That's why I default to the device-specific way of handling this. On Fenix 3 HR it works as expected. There are also new possibilities with newer versions of IQ, but that would in turn limit the number of devices this would run on and that's a big no-go in my book.
In 84b088b, I've added showing the current time always in-app. That should fix the biggest reason IMHO to put the app in background. Hope that will lessen the impact of this issue!
from garmodoro.
I have similar issue as reported with my Garmin MK3i 51mm. Any plans to have Pomodoro run in the background? Ideally with glance show it's status?
from garmodoro.
Related Issues (20)
- Show current time in the app HOT 2
- feature: save finished pomodoro to garmin connect HOT 1
- App crashing after first tap HOT 3
- VA3M: Physical button exits app HOT 1
- Request: Access data from computer? HOT 1
- Battery drain on 245 running 4.40 HOT 3
- Time is not updated on "ready" screen HOT 2
- Preserve pomodoro count per day
- Improve ergonomics on devices with touch screens
- Preloaded vs downloaded watch faces HOT 1
- How to show how many pomodoro has HOT 6
- Add frequency of vibrations to preferences
- Add the Garmin Descent G1 to the List of Supported Devices HOT 1
- Changing PomodoroLength from Source breaks timer HOT 1
- Vibrate only HOT 2
- I cannot stop the 5 minutes break/rest HOT 1
- display on insctict watches with circle in upper-right corner
- Too many "tick" vibration after pressing START HOT 2
- A Bug ,please fix ASAP! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garmodoro.