cancel
Showing results for 
Search instead for 
Did you mean: 

Scanner Implemented problem - not able to show toast message in onSuccess

0 Kudos

Hi,

I am trying the implemented Barcarole Scanner in one of my MDK page. I am using BarcodeScannerAction and in onSuccess I am calling BarcodeScanResult.js

BarcodeScanResult.js

export default function BarcodeScanResult(context) {

var actionResult = context.getActionResult('BarcodeScanner');

let pageProxy = context.getPageProxy();

if (actionResult) {

pageProxy.setActionBinding({ 'Result': actionResult.data, });

return context.executeAction('/DemoSampleApp/Actions/ShowScanValueMessage.action');

}

}

ShowScanValueMessage.action is a tostAction

{ "Message": "Scan value is {Result}", "_Type": "Action.Type.ToastMessage" }

But this action is not executing.

Please let me know am I doing anything wrong there.

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

subha2007p21

The Android App Store client has been updated to 5.2.3, please try again.

I see the expected result.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

The iOS App Store client just update to MDK 5.2.1 today and I tried using that version with your rule and toast message. I saw the expected result.

What version of MDK are you running and on what platform?

0 Kudos

I am using Android Client and the version is 5.2.1. I am not getting the expected result , the toast action is not executing.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

subha2007p21

I am able to reproduce the issue in the android client 5.2.1 (works fine in iOS), have logged an internal bug to further troubleshoot it.

Thanks for reporting this.