Skip to content

iOS & Android bug: Please fix difference in signature of onDetection method #21

@cjohn001

Description

@cjohn001

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:
iosEvent

Android:

androidEvent

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 };

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions