Subscribe to scans by providing a callback method: (This will receive scans triggered by hardware button or software trigger (below) cordova.plugins ...