I ran into the maximum number of complication subscriptions (10) for a watch face app.
Is this number always the same for all devices?
If not how do I determine the maximum number?
I ran into the maximum number of complication subscriptions (10) for a watch face app.
Is this number always the same for all devices?
If not how do I determine the maximum number?
Complications.unsubscribeFromAllUpdates();
warning("Reset all listeners");
var _complications = Complications.getComplications();
var _complication = _complications.next();
var _j = 0;
while(_complication != null) {
var _type = _complication.getType();
if(tixbindings.indexOf(_type)>-1) {
warning("Listening for [" + _type + "] " + _complication.longLabel);
if(_j<11) {
Complications.subscribeToUpdates(_complication.complicationId);
_j++;
} else {
warning("To many listeners, [" + _type + "] " + _complication.longLabel + " not set.");
}
} else {
warning("Not listening for [" + _type + "] " + _complication.longLabel);
}
_complication = _complications.next();
}