App bridge Scanner doesn't ask for permission on Android device

I’m using App bridge 2. On the Android POS app, App bridge Scanner doesn’t ask for permission and doesn’t open the camera. But it works fine if the permission was already granted(while using the POS app barcode reader).

Here are some of my code snippets:

let features = Features.create(app);
        let scanner = Scanner.create(app);

        features.dispatch(Features.Action.REQUEST, {
            feature: Group.Scanner,
            action: Scanner.Action.OPEN_CAMERA
        });

        features.subscribe(Features.Action.REQUEST_UPDATE, function (payload) {
            console.log('Features.Action.REQUEST_UPDATE', payload);
            if (payload.feature[Scanner.Action.OPEN_CAMERA]) {
                var available = payload.feature[Scanner.Action.OPEN_CAMERA].Dispatch;
                // If the Camera Scanner actions were enabled, open a Scanner
                if (available) {
                    scanner.dispatch(Scanner.Action.OPEN_CAMERA)
                }
            }
        });

        app.subscribe(Scanner.Action.CAPTURE, async function (payload) {
            console.log({ payload });
        });

Am I doing something wrong here?

Hey @fazlul_kabir ,

Thanks for getting in touch. This is a known issue and should actually be resolved in the latest release. Can you update the app and try again?

Let us know if it doesn’t work.

Hi @Fionoble , I’m using everything latest version.
POS App version: 4.38.0
App bridge version: 2.0.25

Also, I’ve tried clearing the cache & reinstalling the app, but no luck.

@Fionoble we just tested & found that the same issue is happening for IOS also.

Tested on iPhone 13 Pro. POS app version: 6.79.1

Hey @fazlul_kabir ,

I’m sorry to hear the solution didn’t work and now it’s also happening on iOS. :disappointed_face:

The team will look into it.

No updates yet!