fixed badge event handlers in apn callback