import { DfuUpdate } from '@awesome-cordova-plugins/dfu-update/ngx';
constructor(private dfuUpdate: DfuUpdate) { }
...
this.dfuUpdate.updateFirmware('fileURL', 'deviceIdentifier')
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));