The (detection)="OnDetection($event)" method has different signature when called on Android and on IOS. On Android the barcode is an object which was serialized as a string, on iOS it is a javascript object, see screenshots below.
iOS:
Android:
It would be great to have the iOS variant (javascript object) consistently on both platforms. It would also be great to have typescript typings for the entire barcode object in the event. Currently, the type is simply data: { [key: string]: any };
The (detection)="OnDetection($event)" method has different signature when called on Android and on IOS. On Android the barcode is an object which was serialized as a string, on iOS it is a javascript object, see screenshots below.
iOS:
Android:
It would be great to have the iOS variant (javascript object) consistently on both platforms. It would also be great to have typescript typings for the entire barcode object in the event. Currently, the type is simply data: { [key: string]: any };