function ancsHandler() {
    var msg = Bangle.ancsMessageQueue[0];
    NRF.ancsGetNotificationInfo( msg.uid ).then( info => {

      if(msg.preExisting === true){
        info.new = false;
      } else {
        info.new = true;
      }

      E.emit("notify", Object.assign(msg, info));
      Bangle.ancsMessageQueue.shift();
      if (Bangle.ancsMessageQueue.length)
        ancsHandler();
    });
  }
// not a remove - we need to get the message info first
not a remove - we need to get the message info first
not a remove - we need to get the message info first
function ancsHandler() {
    var msg = Bangle.ancsMessageQueue[0];
    NRF.ancsGetNotificationInfo( msg.uid ).then( info => {
      if(msg.preExisting === true){
        info.new = false;
      } else {
        info.new = true;
      }
      E.emit("notify", Object.assign(msg, info));
      Bangle.ancsMessageQueue.shift();
      if (Bangle.ancsMessageQueue.length)
        ancsHandler();
    });
  }
function ancsHandler ( ) { var msg = Bangle . ancsMessageQueue [ 0 ] ; NRF . ancsGetNotificationInfo ( msg . uid ) . then ( info => { if ( msg . preExisting === true ) { info . new = false ; } else { info . new = true ; } E . emit ( "notify" , Object . assign ( msg , info ) ) ; Bangle . ancsMessageQueue . shift ( ) ; if ( Bangle . ancsMessageQueue . length ) ancsHandler ( ) ; } ) ; }
not a remove - we need to get the message info first
not a remove - we need to get the message info first