Good morning,
A few years ago I developed an application for sailing, which (among other things) records your activity (sailing) that I regularly improve and develop. It's here Sailing waypoints
For the past few months, my app automatically records activity and exits the app on its own, without asking, after about an hour. It’s sometimes 1 hour, sometimes 1h30, the time is never the same.
I've searched everywhere in my code, but I haven't changed this part of the code recently.
I also tried with the simulator, but it doesn't happen
It's very annoying, because in sailing you're not looking at your watch all the time, and I record parts of the activity instead of the entire activity. It generally lasts much more than an hour.
It may be related to the system configuration of my watch (Epix 2), but I couldn't find anything. Maybe a system update? Perhaps a parameter to remove or add in my code?
Here is my code where I open the activity
if (ActiveSession == null) { ActiveSession = ActivityRecording.createSession({ // set up recording session :name=>"Sailing", // set session name :sport=>Activity.SPORT_SAILING, // set sport type :subSport=>Activity.SUB_SPORT_SAIL_RACE // set sub sport type }); ActiveSession.start(); // call start session }
Your help would be welcome, thanks