epix - no support for Userprofile.getHeartRateZones - let the sim throw an error

Part of the fun of developing connect iq apps (for me) is to support apps across several sdk versions, but this is really hard when the real device acts different than the simulator.

o A Descriptive Title
calling Userprofile.getHeartRateZones in the simulator should throw an error when the target is the epix.

o The Environment:
SDK 1.2

o Steps to reproduce the issue
Create an app that calls getheartratezones and deploy it on a real epix

o Proposed solution
Let the simulator throw an error when the getHeartRateZones function is called.
(The preferred solution would be that the epix would be upgraded to CIQ 1.3 (but we know that is unlikely to happen)).

o A code sample that can reproduce the issue (in email only if preferred)
var hrZones = UserProfile.getHeartRateZones(UserProfile.getCurrentSport());

o Any applicable additional information
As the epix is the only 1.2 CIQ device left, also the documentation is confusing since it says support as of version 1.2.6 (I would propose to change that to 1.3)
https://developer.garmin.com/downloa...nstance_method
  • Former Member
    Former Member
    This sounds reasonable. I've created a ticket to address it.

    Thanks,
    -Coleman
  • Isn't the Epix still running a 1.2.1 VM? And therefore, "since 1.2.6" is likely correct?

    I'm thinking in theory, the epix folks could do a FW update with the 1.2.6 VM, in which case the doc would be wrong if it had "Since 1.3.0".

    (but I expect a blizzard in July before that happens :) )
  • (but I expect a blizzard in July before that happens :) )


    You might need to qualify that with a location. :)

    When I was a young Trooper (Armoured Corps/calvary version of a Private within Canada and the Commonwealth) in the Army, it snowed in July in CFB Suffield, located in a semi-arid region of Southern Alberta. It was fine for anyone on base but for most of us in the field it was a chilly 24 hours and reinforcement that nothing in the Army is ever like the recruiter promised. :)

    Cheers,
    Douglas

  • Got this one into the 2.4.1 SDK. The epix device profile should now throw an error in the sim in this case.