Giter Site home page Giter Site logo

App will exit if swap right about garmodoro HOT 8 OPEN

klimeryk avatar klimeryk commented on August 16, 2024
App will exit if swap right

from garmodoro.

Comments (8)

tompropst avatar tompropst commented on August 16, 2024 2

@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.

klimeryk avatar klimeryk commented on August 16, 2024

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.

Cianid avatar Cianid commented on August 16, 2024

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.

klimeryk avatar klimeryk commented on August 16, 2024

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.

Cianid avatar Cianid commented on August 16, 2024

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.

klimeryk avatar klimeryk commented on August 16, 2024

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.

klimeryk avatar klimeryk commented on August 16, 2024

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.

epnasis avatar epnasis commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.