Can't getInfo() from ActivityMonitor due to permission error on Watch Face

Former Member
Former Member
Hi,
I only recently purchased a fenix 3 HR and I'm trying to program my first watch face. I can't get the MoveBar activity level due to a permission error.

The doc says this:
If you request a Toybox module outside this list for your app type, you will get a SymbolNotFound error. Source: http://developer.garmin.com/connect-iq/developer-tools/functions

Activity isn't listed under the Watch Face functions so how do you do this?

My code is essentially doing this:

using Toybox.ActivityMonitor as Act;

<in draw function>
var activity = Act.getInfo(); //this is where it fails on permissions


The error is:

Connecting to device...
Device Version 0.1.0
Device id 1 name "A garmin device"
Shell Version 0.1.0
Permission required
Permission Required
Failed invoking <symbol>

I am on a Macbook using Eclipse with the connectiq-sdk-mac-2.1.0.

I'd appreciate someone's help with this.

Thanks!
Stewart
  • IIRC, in 2.1.0 you needed the "steps" permission for this, but that's been removed with the 2.1.2 SDK. I would suggest upgrading to 2.1.2, as 2.1.0 was a "preview" (beta) of the SDK and 2.1.2 is the release version.
  • Former Member
    Former Member over 8 years ago
    IIRC, in 2.1.0 you needed the "steps" permission for this, but that's been removed with the 2.1.2 SDK. I would suggest upgrading to 2.1.2, as 2.1.0 was a "preview" (beta) of the SDK and 2.1.2 is the release version.


    Awesome - thanks. The joys of using betas when you're a newbie!

    Appreciate the answer!
    Cheers,
    Stewart