Community API - PlayBook Barcode

Hello

I try a playbook 'Barcode' https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Tablet/Barcode extension, but the application does not work. I have a lot of mistakes, when I click on

'Namespaces test'-> BB ns: [object Object]-> blackberry-media ns: undefined-> error with namespace: TypeError: result of expression 'blackberry.media' [undefined] is not an object.

When I click on 'Decode barcodes'-> error occurred when scanning barcodes: expression TypeError:Result 'blackberry.media' [undefined] is not an object...

I think that the blackberry.media object is not available on playbook (os 1.0), where is error ?

CU

UserNeo

Have you copied the extension in the "ext" of Tablet SDK folder?

Tags: BlackBerry Developers

Similar Questions

  • Unzip the API in WebWorks-community-API

    Followed the directions except point 3 where it says "compass." Changed to "decompress."

    1. Cloning the repo on your local machine
    2. Locate your BlackBerry WebWorks SDK WebWorks SDK, 10 research in Motion\BlackBerry C:\Program \Framework\ext (Windows) or ~/SDKs/BlackBerry SDK WebWorks/framework/ext 10 (Mac)
    3. Create a new directory community.compass in the ext directory
    4. Copy output/community.unzip/unzipJnext.so to /path/to/sdk/ext/community.unzip/device/unzipJnext.so
    5. Copy the text in javascript_src to /path/to/sdk/ext/community.unzip

    so my 'ext' folder contains a "community.unzip" folder, and this folder contains:

    • client.js
    • index.js
    • Manifest.JSON
    • and a "peripheral" folder containing unzipJnext.so

    my config.xml file contains

    in high triple checked

    referring to community.unzip.unzipPackage

    gives the message "community.unzip is not defined.

    And a question. The example of index file has this statement

    What? Why?  He receive another message on this one "failed to load the resource.

    Hello

    You are right.  The extension only works in an application packages.  Not waving.

  • BB10 Barcode API for WebWorks

    Hey guys,.

    Here's my problem:

    I want to read a 1 D bar code (EAN - 13) and achieved his feat on the playbook with one of the webworks community API, unfortunately there are none for BB10 right now and I don't have the skills to do it myself with the NDK.

    Maybe someone of you had done this before and can share its solution with me and the community, or has an idea what he wants to share with me how to solve this problem. Any help is really really really appreciated.

    See you soon,.

    Christian

    There is now a plugin official webworks on github that provides the desired functionality.

  • Is there an API for developing WebWorks Playbook file picker?

    I'm looking for a way to ask the user to navigate to a file and then access the file in javascript. I found there is something for BlackBerry smartphone, https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/FilePicker. For the same reasons, I can not use the input type HTML field 'file '.

    Is there an equivalent for Playbook?

    Hi asiayeah,.

    Unfortunately it doesn't seem to be something similar to this extension in space Tablet currently. Seems that you need your own custom control (WebWorks APIs leverage) or extension (to dig down in the AIR or AIR > native) for this right now.

    Erik Oros

    BlackBerry Development Advisor

  • API of Communication OS6 no Msg Push

    I'm just trying to provide 2 versions diff to push Clients:

    * OS 5 customer (based on the sample of push and Simon_Hains code example)

    works well

    * OS 6 Client using the new API of Communication Communication API demo

    Subscription to the content provider and recording of BPS works well: questioning the BPS, the customer is active

    Removal of the device APP automatically off records the PIN of the BPS Server

    The SubscriptionResponseListener works as well: onMessage receives the response from the ContentServer to verify if the subscription is allowed.

    But: the MessageListener for PushMessages of BPS gets no message. The messages will become "EXPIRE" after a while because of the delivery-before-timestamp...

    The Messages were repelled EVAL Push server if you use the OS5 - sample of push.

    also if PushSample is running and you try to run also the OS6 push Cklient I have the correct message that another receiver is already listening on the Port.

    think there must be something wrong with my receiver not to receive Messages - maybe the URI of the receiver is listening on:

    BPS_PUSH_RECEIVER_URI = ' local: / /: "+ BPS_PUSH_PORT".

    the JavaDoc says:

    createNonBlockingReceiverDestination will receive the messages by listening to the local://deviceAppName URL.

    the API of Communication demo uses:

    local: / /:tro-No./test2

    I also tried to add the receiver URI/name-of-cod, but it's the same: no message coming

    any ideas what could be the problem?

    GOD wrote:

    ...

    think there must be something wrong with my receiver not to receive Messages - maybe the URI of the receiver is listening on:

    BPS_PUSH_RECEIVER_URI = ' local: / /: "+ BPS_PUSH_PORT".

    the JavaDoc says:

    createNonBlockingReceiverDestination will receive the messages by listening to the local://deviceAppName URL.

    the API of Communication demo uses:

    local: / /:tro-No./test2

    thx for helping RIM on that: a ' / ' missing

    This is the URI of the BPSPushReceiver of the OS 6 Communication API is listening on:

    "local: / /:" + BPS_PUSH_PORT +"/" ".

  • Prevent the PlayBook goes into mode standby when the application is open

    What is the code needed to prevent the PlayBook mode 'sleep' when the application is active?

    Maybe this can help: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Tablet/sleep

  • In the development of Webworks barcode reader

    Hi all

    Is there any API to scan bar code in development webworks for 10 BlackBerry and BlackBerry OS 7 or an earlier version?

    Where to find it?

    Thank you very much.

    https://github.com/BlackBerry/WebWorks-community-APIs/ has a record for BB10 and Smartphones (pre-BB10) and both have an extension for scanning barcodes. Hope that helps!

  • "Unknown device" USB Barcode scanner, problem with the USB controller driver?

    Hello

    I need assistance with our Barcode Scanners that doesn't work on our newly purchased computers at HP with Windows7 Pro x 64 operating systems.

    The brand and model of the bar code scanner is:

    Datalogic Heron D130 USB.

    When you connect the scanner to a USB port, Windows will try to install this as a HID, but it takes an unusually long time, about 7-8 seconds, to boot the device and install the drivers and appears as an unknown device in windows "devices and printers" and the hand scanner does not work.

    Sometimes when you move the USB back can I sometimes the scanner at hand to be recognized as an HID device or a Datalogic barcode scanner,

    It works fine until you restart the computer.

    After restart the computer cannot detect the scanner Barcode correctly without re - appears as unknown device.

    I suspect that there is a compatibility problem between barcode scanner and card USB controller on the computers.

    I tried to update all the drivers available on the website www.hp.com and same www.Intel.com (chipset drivers) but nothing has helped to solve this problem

    Tried newly bought barcode scanners and "used" barcode scanners earlier who works on other computers, but the problem remains.

    I found a workaround by connection of bar codes in a USB hub, and then plug the USB hub to the computer.  And leave the USB - hub to take care of the communication with the Barcode Scanner.

    in this case, it takes about 2 seconds for the code scanner barcode to mount correctly in windows under the heading "devices and printers" and then works perfectly, even after a reboot.

    I googled after a response after my problem, but it seems I'm the only one who experience this issue. ?!

    Bought more than 40 computers that I have this problem.

    These were bought at different times with two different for suppliers

    Computer model are the following

    HP ProDesk 1 400 P/N5S21EA

    Specifikations:

    http://WWW8.HP.com/emea_africa/en/products/desktops/product-detail.html?OID=6614160#! tab = specifications

    Does anyone have an idea what could be wrong and how to fix it?

    Thanks in advance

    Sincerely

    Robert T

    Hello

    The problem is not power - related.

    We use passive USB hubs that solves the problemon these computers.

    (it also works with the docks, or if you EliteDisplay E241 HP as we thers a usb hub 2 ports inbulit in monitor that works.)

    The problem lies in the incompatibility between the Intel USB controller and the hand scanner, can be connected to USB 3.0

    When you let another usb-controller support in handshakeing (such as a usb hub), it works.

    Datalogic or Intel would like to acknowledge this error.

    Because none of the big companies want to acknowledge the problem or repair, personally chose to switch to an AMD platform / CPU instead of the Intel and now it works fine!

    We get more performance for your money when AMD is usually less expensive to purchase.

    And because of the poor of Datalogic press where they don't even answer e-mail (their only channel for support)

    I chose to stop using their products. I'm going to use another provider / brand of barcodescanners.

  • net.rim.blackberry.api.mail.ServiceConfiguration

    I could see ServiceConfiguration class package rim... is there a method/logic equivalent it in cordova/webwork api in webworks 2.0? I need to get the email as

    Session mailSession = Session.getDefaultInstance ();
    ServiceConfiguration config = mailSession.getServiceConfiguration ();
    String email = config.getEmailAddress ();

    Thanks in advance

    Balu

    Hi, Balu, not is not a 'messaging service' plugin still available for WebWorks 2.0 / Cordova.

    You need to write your own plugin wrapping any corresponding native API in a container of JavaScript, similar to what other devs are here: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova

  • Problems when creating extension using pim contact webworks API

    Hello

    I need to create an extension that use webworks APIs to get all contact data as well as launch the contact selector and must obtain the name of the contact, numbers and Base 64 of contact image chain.

    Now, I have a few quesries below:

    1. I tried to reach my api requirement with webworks. For this, I did changes in the config.xml file.



    <>ermissions >
    <>Ermit > access_pimdomain_contactsermit >
    ermissions >

    and able to access the API of pim.contact placed here: C:\Program Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.11\Framework\ext\pim.contacts

    But when I tried to get all contacts by using the getContactAccounts() method, it gives me two accounts simcontacts and LocalContacts and their identity papers are respectively 2 and 19.

    I found that I can get the list of contacts using the example of the contacts. but this is to limit the length to 20.

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/need-help-with-BB10-WebWorks-con...

    2.i have not found any documentaion appropriate for the fields of my contact: name, numbers and Base 64 of contact image chain like the way they gave in the native SDK documentation.

    Please share any code example that is in all fields of contact data of Singla retrieving.

    3. I need to share my contact plugin and need to expose certain methods of my plugin webworks.

    How can I reach it?

    Is it possible to get the code side native for pim.contact plugin, so that I can add methods more in it and can expose these methods more Web app works by making the required in index.js and client.js chnages.

    Help, please.

    I checked and there seems to be a problem with the API that has been fixed for version Gold SDK. Here you can find a similar position:
    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/need-help-with-BB10-WebWorks-con...

    And more information on the real fix here:
    https://github.com/BlackBerry/Cordova-BlackBerry-plugins/pull/80

    It seems that it was default 0, which gave 20 results, as opposed to-1, the expected default value.

    For now, if you simply pass a high value for limit, which should get the contacts (i.e. 1000). I know that's not ideal, but a workaround for now.

    For plugins, the best starting point would be the following.

    WebWorks SDK 1.0:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/template

    WebWorks SDK 2.0:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/template

  • Lack of 4.2.2 Android API of the basic documents

    Hey people,

    I was pleased with the release of support of 4.2.2 with the Android Runtime Android. I looked for an updated list of supported APIs, but the only thing I could find was:

    The BlackBerry Runtime for Android apps applications supports Android 4.2.2 (BlackBerry 10.2 beta) and 2.3.3. 4.2.2 Android API support information will be available soon.

    On the official Android Runtime API Support Page (https://developer.blackberry.com/android/apisupport/).

    Do you have any delivery date for documentation that you can share with us? I'm very curious to know if the NFC is supported in the new version of Runtime Android.

    Thank you for your help.

    Best regards

    Raphael

    Hi RThie,

    Thanks to touch base.

    By our roadmap, the Gold release 10.2 for the iteration of Jelly Bean of the Runtime for Android BlackBerry applications will be in August. At that time, the Jelly Bean 4.2.2 documentation will be available.

    Note: Near Field Communication (NFC) is not on the roadmap for inclusion in the next update. However, it is supported on the platform of development native/Cascades.

    Duration of blackBerry for apps Android - Developer Roadmap

    https://developer.BlackBerry.com/native/downloads/roadmap/

    Native blackBerry/Cascades - near field Communication API Docs

    https://developer.BlackBerry.com/native/reference/BB10/nfc_libref/topic/manual/nfc_lib_nfc_conceptua...

  • Audio player of PlayBook webworks.

    I'm playing the audio data from the system of local files and internet audio stream.

    I tried blackberry.audio.Player method explained in the documentation of the api webworks. I guess the playbook does not have this object installed, because as far as I can see, I'm an exception due to the access to the object not initialized.

    Secondly, I tried jplayer, which uses the music player if html5 html5 extensions are available, and falls to adobe flash player if html5 is not successful. It has always failed...

    Third, I tried the pure html5 player. I can see the commands, the audio length is displayed with '-' value? (I did not understand why?) but no sound.

    I tried the method of second and third in google chrome, it works. Do you have an idea what could be wrong? What is the recommended method for the audio playin?

    Hello

    There was some discussion around this topic on the forums.  The blackberry.audio API is only on the smartphone platform... The PlayBook WebWorks APIs can be found here:

    http://www.BlackBerry.com/developers/docs/WebWorks/API/PlayBook/

    Audio not playing is not in the Simulator is a known problem.  The 0.9.4 Simulator comes not with any codecs to be able to play the video or audio.  This will be corrected in the final RTM version of the Simulator.

  • OS6 Communication fails with HTTP BIS - b

    Hello

    in an application OS6 I met a problem that cost me some time to find out the reason:

    HTTP GET or POST fail on connections of BIS_B using the OS6 Communication APIs - I have not found a way to make it work, so falling to OS5 network API

    Here is the story:

    a very simple scenario: send something via HTTP to a server and the server sends back a small stream. ("text/plain")

    well... you can take a look at the "Communication API demo of OS6 samples to see what should be possible using the OS6 Communication APIs

    at first I tried Simulator: all works well using blocking or NonBlockingSenderDestinations.

    the tried on a device:

    WIFI: it works the same as on the Simulator + MDSCS

    Cell TCP: works the same as on the Simulator

    BISB: FAILS - is not serious if you use GET or POST or using blocking or NonBlocking destinations

    same URL entry browser: it works well, sending text server of displayed well

    strengthened through the code being debugged, added logging statements and eventually found what happened:

    TransportHeaders respose message were different.

    It's the Transportheader using WIFI, cellular TCP, Simulator + MDSCS coming:

    Content-Type

    text/plain; charset = utf-8

    Content-Length

    19

    Connection

    close

    Server

    Jetty (6.1.x)

    was exactly what we expected: raw text of length 19 sent my Pier OSGI server.

    Now take a look at the coming of TransportHeaders rear using BISB on device (9800):

    connection

    close

    Server

    Jetty (6.1.x)

    content length

    78

    x-rim-etag

    'B93405A8E587FE3E45F4210D41D1A1218E7DE4C5 '.

    x-rim-bsm-session

    None

    x-cache-search

    MISS Blackberry.Internet.Browsing.Service:3128

    through the

    1.1 pmds95.bisb4.blackberry:3128 (squid/2.7.STABLE7)

    content type

    application/vnd. RIM.html

    x cache

    MISS Blackberry.Internet.Browsing.Service

    the server threw and the connection is closed - what is the same and correct.

    the other TransportHeaders lead me to think that maybe it was how the content was transported through the BlackBerry infrastructure, but I forgot to convert what needs to be given to the customer.

    I analyzed the byte [length] 78 and found this inside this table as my 19 bytes sent from the server were found and the byte before this text was a byte of value ' 19 '' - the length of the following data. " I also found "text/plain" isnide table.

    I should put some headers more to my side Server?

    But he couldn't be that bad because by using the APIs network OS5 it is correctly by the device BISB. the code was similar.

    Here's the (simplified) OS6 code for aNonBlockingSenderDestination:

    NonBlockingSenderDestination subscribeDestination = null;
    ConnectionFactory cf = new ConnectionFactory();
    cf.setPreferredTransportTypes(new int[]{
        TransportInfo.TRANSPORT_TCP_WIFI,
        TransportInfo.TRANSPORT_MDS,
        TransportInfo.TRANSPORT_BIS_B,
        TransportInfo.TRANSPORT_TCP_CELLULAR,
        TransportInfo.TRANSPORT_WAP2
    });
    BisBOptions biso = new BisBOptions(seekretConnectionType);
    cf.setTransportTypeOptions(TransportInfo.TRANSPORT_BIS_B, biso);
    Context subscribeContext = new Context("SUBSCRIBE_NON_BLOCKING", cf );
    try {
          subscribeDestination = (NonBlockingSenderDestination)DestinationFactory
            .getSenderDestination(
                subscribeContext.getName(),
                getPushInitiatorSubscribeURI());
          if (subscribeDestination == null) {
             MessageListener subscriptionListener = new SubscriptionResponseListener("Subscription");
                subscribeDestination = DestinationFactory
                    .createNonBlockingSenderDestination(
                        subscribeContext,
                        getPushInitiatorSubscribeURI(),
                        subscriptionListener
                    );
          ConnectionDescriptor connectionDescriptor =   subscribeContext.getConnectionFactory().getConnection(getPushInitiatorSubscribeURL());
          HttpMessage httpMessage = (HttpMessage) subscribeDestination.createByteMessage();
          httpMessage.setMethod(HttpMessage.POST);
          subscribeDestination.send((Message)httpMessage);
    

    and here's the code API network OS5 (Simplified):

    DataBuffer buffer = new DataBuffer( 256, false );
    InputStream is = null;
    Connection conn = null;
    try {
        ConnectionFactory cf = new ConnectionFactory();
        cf.setPreferredTransportTypes(new int[]{
            TransportInfo.TRANSPORT_TCP_WIFI,
            TransportInfo.TRANSPORT_MDS,
            TransportInfo.TRANSPORT_BIS_B,
            TransportInfo.TRANSPORT_TCP_CELLULAR,
            TransportInfo.TRANSPORT_WAP2});
        BisBOptions biso = new BisBOptions(seekretConnectionType);
        cf.setTransportTypeOptions(TransportInfo.TRANSPORT_BIS_B, biso);
        ConnectionDescriptor connectionDescriptor = cf.getConnection(getPushInitiatorSubscribeURL());
        conn = (HttpConnection) connectionDescriptor.getConnection();
        if( conn instanceof HttpConnection ) {
             HttpConnection httpConn = (HttpConnection) conn;
             ((HttpConnection) conn).setRequestMethod(HttpConnection.POST);
             OutputStream os = httpConn.openOutputStream();
             os.write(("user="+user+";pw="+password).getBytes());
             os.flush();
             int responseCode = httpConn.getResponseCode();
             is = httpConn.openInputStream();
             int length = is.read( buffer.getArray() );
             buffer.setLength( length );
             String response = new String( buffer.getArray(), buffer.getArrayStart(), buffer.getArrayLength() );
             if( responseCode == 200 ) {
                  return true;
             }
        }
    

    is similar using always the same values and the server gets the correct data even from BISB using the Communication APIs - just the answer for this type of transport passing becomes bad.

    any ideas?

    or should I proceed to report a problem as a Bug?

    There is really a bug: If you use BISB with HTTP and OS 6 Communication API, then:

    It works for BISB-over-WIFI

    but it fails to BISB-over-carrier

    bug in > 6.0

    The GOOD NEWS: there is a solution:

    Just add a "User-Agent" TransportHeader with any value to your HTTP request Message, but the value does NOT start with the word "BlackBerry".

    then it works always - is not serious if the transport is in WIFI or carrier

    RIM thx for help

  • BlackBerry provides javascript api to scan QR code?

    We are developing an application using IBM polisher/polisher (HTML5, CSS, Jquery) now QR code analysis we wonder how to integrate the QR code analysis in it?

    There is a native extension for this:

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/BarcodeScanner

    Or do it in JavaScript :

    https://github.com/LazarSoft/jsqrcode

  • Storage possible offline at the PlayBook?

    I am currenty to build an offline application webworks for PlayBook based on offline storage / in-house for the PlayBook. As far as I KNOW, this specifien API is not yet supported (according to reference the API PlayBook, CMIIW).

    I tried to use the IndexedDB to use PB browser internal storage Simulator, but there is no chance.

    The question is, what is the best storage media operating in PlayBook to create the WebWork application user offline offline?

    Hello

    What about HTML5 openDatabase?

    I tried the sample application "StickyNotes" webkit quickly and it seems to work - except that example expects the entries in mouse etc... but sticky notes open are restored when app gets opens again.

    (Even after restarting playbook sim all still there as safe).

    . H

Maybe you are looking for

  • X 1 Pro OneLink docking station and carbon (2014)

    Hello I have a X 1 carbon and an among Pro platform. I have it configured with evey thing works, no problem whatsoever. My concern is that when the laptop is fully charged when you are connected to the dock, is it possible to switch to the battery wh

  • option to print Photosmart 6510 not highlighted

    With windows 7, I can print when you use Word, but if I want to print the e-mail or the internet, I can only do on my ophotosmart 6510 first economy on the desktop. Economy option is available, but there is no response from the printing option is gra

  • the Z2 firmware error

    to all, I tried to update my Z2 but it keepgive this msg (update sony (error 2003) engine failure) and he infomred that contains my software modified camera, this msg by PC Companion keepcoming and ABOVE, can someone help me with this, or how I remov

  • Selected index was not found in the editfield

    Hello I am facing a problem when adding listener to the BasicEditField. I'm not able to retrieve the index of the field in which the data has been inserted. I'm getting the same index for each field. Here is the corresponding code. BasicEditField[] q

  • Environment of closing so that a new EnvImpl is created.

    HelloWe must reopen the environment to a new set of log files in the file system. We use the BDB inside a JAVA virtual machine running our application. We treat local BDB to a JVM process.I searched this community and it looks like the only way is to