notificationCount and alarmCount not working for me

Former Member
Former Member
I have updated to v1.2.1, and I have loaded other people's watchface apps that utilize these functions (which do work) to my watch, but cannot seem to get them to work in my watchface application (simulator or watch).

I have this in the onUpdate(dc) function:
var AC = (Sys.getDeviceSettings() has :alarmCount ) ? true : false;
Sys.println ("AC:" + AC.toString());

var NC = (Sys.getDeviceSettings() has :notificationCount ) ? true : false;
Sys.println ("NC:" + NC.toString());

var PC = (Sys.getDeviceSettings() has :phoneConnected ) ? true : false;
Sys.println ("PC:" + PC.toString());

And it returns:
false
false
true
no matter the watch type selected in the simulator. On the watch itself, it doesn't work either (I have different code for that). I have tried various permissions, and configurations, but I am stuck.

Can someone throw me a rescue line here?

Thanks,
Steve
  • Former Member
    Former Member
    Wow. I feel stupid. I thought that the update through eclipse was also able to pull in the new 1.2.1. Nope. That was my mistake.

    I can't thank you guys enough for the assistance. I was really starting to pull my hair out. I guess I need to read the information better, but who wants to read when the creative juices are flowing.

    THANK YOU!!!!
  •  var settings=Sys.getDeviceSettings(); did the trick for me. I was getting null when using: System.DeviceSettings.notificationCount; Thanks