Software Archive
Read-only legacy content
17061 Discussions

xdk.device.scanBarcode() method doesn't work on IOS

A_B_3
Beginner
658 Views

intel.xdk.device.scanBarcode() method doesn't work after building on IOS.

It work properly in App Preview. It would be better vice versa :)

Can you advice the solution?

0 Kudos
4 Replies
Amrita_C_Intel
Employee
658 Views

Hello.

Did you include the Intel Device plugin? You need to enable that in the Plugins settings, under the Projects Tab in the XDK.

Or 

Can you try adding a 3rd party cordova barcode scanner and see if that works? 

This one appears to be pretty popular  http://plugins.cordova.io/#/package/com.phonegap.plugins.barcodescanner

0 Kudos
A_B_3
Beginner
658 Views

Yes. I included already this third-part plugin and it works properly.

With default Intel Device plugin it doesn't work. (on IOS after building)

 

0 Kudos
PaulF_IntelCorp
Employee
658 Views

Can you provide a simple project that illustrates the issue, and attach it to this thread. Zip the entire project directory so we can fully duplicate your issue. Keep the project simple so we can quickly see what is happening (or not happening) and provide some instructions or screen shots that show what you mean by "failing."

0 Kudos
A_B_3
Beginner
658 Views

Hmmm. I created new blank project with barcode scan function for you and ...... it works!

I think there were conflicts with other plugins or errors in my code. Sorry. I 'll try to include it in my code again. You can delete this topic. 

0 Kudos
Reply