Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

cordova.plugins.barcodeScanner.scan()

Jonas1
Beginner
3,666 Views

 

Hi there!

I was using "intel.xdk.device.barcode.scan" to read QR code, but after installing Intel XDK Early Access it is not working. Now I am trying to use "cordova.plugins.barcodeScanner.scan()" but no luck at all. Someone to help me please? Thanks in advance.

 

 

0 Kudos
22 Replies
PaulF_IntelCorp
Employee
3,303 Views

Please use this Google or Bing search

site:software.intel.com/en-us/forums/intel-xdk cordova barcode scanner

to locate some threads in this forum related to barcode scanners. You're not providing enough details regarding what the issue is, so we can't help. Perhaps there is an existing thread that has the same issue that you could use?

0 Kudos
Jonas1
Beginner
3,303 Views

 

Thank Paul.

I went to https://github.com/phonegap/phonegap-plugin-barcodescanner  got the version 4.0.2 now it is working. Thanks again.

 

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
3,303 Views

I am using https://github.com/wildabeast/BarcodeScanner with good results.

0 Kudos
Jonas1
Beginner
3,303 Views

Hey Hamilton!

I have tried to build a few minutes ago on Intel XDK 2366 and got the same. "Error: Plugin PhoneGap Plugin BarcodeScanner failed to install." 

By the way are you Brazilian? :)

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
3,303 Views

@Jonas > yes, Brazilian. Do you too? Do you prefer in Portuguese?

See my configuration inside .xdk file:

       "id": "BarcodeScanner",
        "version": "",
        "selectedState": "Included",
        "data": {},
        "paramvals": {},
        "dependsOn": [],
        "dependedBy": [],
        "custom": "true",
        "name": "BarcodeScanner",
        "origin": "https://github.com/wildabeast/BarcodeScanner",
        "originType": "repo",
        "sourceLocation": ""

It is working for me. Android and iOS.

0 Kudos
Jonas1
Beginner
3,303 Views

Yes Hamilton, I am Brazilian too. Originally from BA, but living in SC :)

We can keep in English no problem.

Well, I installed https://github.com/phonegap/phonegap-plugin-barcodescanner on the Intel XDK EA 2337 got the same error, then I removed all Custom Intel XDK Plugins and I am able to build it for android, but not for windows. Any suggestion?  

If you could, I need help to build and test for windows. I have paid Google and Microsoft stores.

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
3,303 Views

Hi Jonas. Great! SC and BA are good places. I am from SP/SP.

You are using XDK EA 2337? I don´t know thi version. I am using the 2366 version (newer?). Do you tested with other?

I do not build in Windows. I don´t know, but almost all apps that I tryied before do not run, then I leave this environment for a moment. Is just with this version that you have problems?

You said that you paid Google and Microsoft stores? Both are free (as far as I know). Only Apple has a year payment.

 

0 Kudos
Jonas1
Beginner
3,303 Views

 

Hi Hamilton! 

Whats up?

I have both XDK 2366 (Intel Production) and XDK EA 2337. XDK EA is the only way to build windows app 8.1 (I think). (Intel dont reccomend to use it in production).

I was using XDK 2366, but after I removed intel.xdk.device.scanBarcode() plugin I had problem to use cordova scanner plugin, then I built my app with XDK EA 2337, so  far it is working, but I am still unable to build windows version in both. I tried to put the plugin you told me and a new one, both fail in XDK 2366. 

I wish you were right about google and windows stores were free :) Microsoft and Google US$25 and Apple US$99. In the mean time I dont intend to built for Apple.

0 Kudos
Pamela_H_Intel
Moderator
3,303 Views

@Jonas - there is a problem with Cordova Windows Mobile builds. See https://software.intel.com/en-us/forums/intel-xdk/topic/563699#comment-1838804

Hamilton and Jonas,

EA clarification: EA Edition of Intel XDK is the beta version. We introduced it a few months ago as a way to get feedback on new features before we incorporate them into the mainstream version. The numbers do not correspond - Intel XDK 2366 is the latest mainstream version and Intel XDK EA 2337 is the latest early access version. New versions of both will be released very soon.

0 Kudos
Jonas1
Beginner
3,303 Views

Hi there!

I still unable to build my application. I have upgraded to XDK 2496 and it still failing..

I tested using phonegap-plugin-barcodescanner from 3.0.0 to 4.0.2 versions and no luck at all.

This is the only build log available.

The build failed. An error occurred while building the application. Verify your build assets are correct and try again.

Build Log:
Building a Cordova 4.1.2 application.
The application name is "Nodirtyenv"
The package name is "com.nodirtyenv.app"
Preference android-signed set to true. Application will be signed.
Error: Plugin "BarcodeScanner" failed to install.
Plugin "org.apache.cordova.device" (0.2.13) installed.
Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
Plugin "org.apache.cordova.dialogs" (0.2.11) installed.
Plugin "org.apache.cordova.inappbrowser" (0.5.4) installed.
Plugin "org.apache.cordova.camera" (0.3.4) installed.
Plugin "org.apache.cordova.contacts" (0.2.15) installed.
Plugin "org.apache.cordova.geolocation" (0.3.11) installed.
Plugin "org.apache.cordova.globalization" (0.3.3) installed.

0 Kudos
PaulF_IntelCorp
Employee
3,303 Views

Jonas -- try building with the Android tile, rather than the Crosswalk tile. It will usually give more error details and may provide useful information as to what is going wrong.

0 Kudos
Jonas1
Beginner
3,303 Views

Hi Paul"

Until now I had never tried to build with crosswalk. Just tried and here is the log:

The build failed.
An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • The App ID is "com.nodirtyenv.app"
  • The App Name is "Nodirtyenv"
  • Preference android-signed set to true. Application will be signed.
  • Crosswalk Version: 11.40.277.7
  • Error: Plugin "BarcodeScanner" failed to install.
  • Plugin "org.apache.cordova.device" (0.2.13) installed.
  • Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
  • Plugin "org.apache.cordova.dialogs" (0.2.11) installed.
  • Plugin "org.apache.cordova.inappbrowser" (0.5.4) installed.
  • Plugin "org.apache.cordova.camera" (0.3.4) installed.
  • Plugin "org.apache.cordova.contacts" (0.2.15) installed.
  • Plugin "org.apache.cordova.geolocation" (0.3.11) installed.
  • Plugin "org.apache.cordova.globalization" (0.3.3) installed.

 

 

 

 

 

 

 

Here is the Android build log:

The build failed.
An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • Building a Cordova 4.1.2 application.
  • The application name is "Nodirtyenv"
  • The package name is "com.nodirtyenv.app"
  • Preference android-signed set to true. Application will be signed.
  • Error: Plugin "BarcodeScanner" failed to install.
  • Plugin "org.apache.cordova.device" (0.2.13) installed.
  • Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
  • Plugin "org.apache.cordova.dialogs" (0.2.11) installed.
  • Plugin "org.apache.cordova.inappbrowser" (0.5.4) installed.
  • Plugin "org.apache.cordova.camera" (0.3.4) installed.
  • Plugin "org.apache.cordova.contacts" (0.2.15) installed.
  • Plugin "org.apache.cordova.geolocation" (0.3.11) installed.
  • Plugin "org.apache.cordova.globalization" (0.3.3) installed.
0 Kudos
PaulF_IntelCorp
Employee
3,303 Views

Are you getting a "detailed" build error log with these? See about half-way down this doc page for an example of what I mean: https://software.intel.com/en-us/xdk/docs/using-the-build-tab

0 Kudos
Jonas1
Beginner
3,303 Views

Hi Paul!

How are you?

I've tried to build (Crosswalk Runtime Embedded 14) with phonegap-plugin-barcodescanner and failed too.
Then I removed and reinstalled SDK Intel 2496. Installed the phonegap-plugin-barcodescanner using 
Third-Party plugins instead of Featured Plugins. Now I am able to  build Android, Crosswalk and windows applications.

later on I will  test it. Too late now and  I am going to bed :)

 

0 Kudos
PaulF_IntelCorp
Employee
3,303 Views

Jonas, in the plugin management section of the projects tab, what version of the plugin is given when you click that plugin's name in the list of installed plugins? Can you provide a screenshot of that plugin item when it is expanded, similar to this (note I have expanded the "Keyboard" plugin in the image below):

Screen Shot 2015-09-30 at 11.07.15 AM.png

0 Kudos
Jonas1
Beginner
3,303 Views

XDK Intel Plugin Mgnt - com.phonegap.plugins.barcodescannerHi Paul!

Whats up?

There  you go.

 

 

0 Kudos
Jonas1
Beginner
3,303 Views

Paul, I did as you requested, "https://software.intel.com/en-us/xdk/docs/using-the-build-tab"  built with crosswalk, uploaded crosswalk.x86.timestamp.apk  after change to simple mode it didnt allow me upload crosswalk.arm.timestamp.apk...

0 Kudos
PaulF_IntelCorp
Employee
3,303 Views

Hi Jonas, thank you for that screen shot. We are making adjustments to the feed that specifies the versions for those featured plugins, I think that change will fix what you have been seeing.

Regarding your last post:

Paul, I did as you requested, "https://software.intel.com/en-us/xdk/docs/using-the-build-tab"  built with crosswalk, uploaded crosswalk.x86.timestamp.apk  after change to simple mode it didnt allow me upload crosswalk.arm.timestamp.apk...

I don't follow what you mean. Do you mean that you have an app in the store already and now you cannot upload a new version of it with your current build? If that is what you mean, this post might help: https://software.intel.com/en-us/forums/intel-xdk/topic/594778

0 Kudos
Jonas1
Beginner
3,303 Views

Hi Paul!

Thanks for your prompt reply!

I will look forward for the changes. :)

Regarding this post 

Regarding your last post:

 "https://software.intel.com/en-us/xdk/docs/using-the-build-tab"  built with crosswalk, uploaded crosswalk.x86.timestamp.apk  after change to simple mode it didnt allow me upload crosswalk.arm.timestamp.apk...

I meant that for the first time I built my app with crosswalk instead of android. But I was able to upload only one file the crosswalk.x86 one to google play store.  My question is: Should I use crosswalk or android tab to build my app? Thanks in advance.

 

0 Kudos
PaulF_IntelCorp
Employee
3,097 Views

Jonas, in general, it is best to use Crosswalk to build your app. There are many posts in this forum explaining why. In short, see this blog for some details: http://blogs.intel.com/evangelists/2014/09/02/html5-web-app-webview-app/

0 Kudos
Reply