Question of Cordova 3.1.0

Hi all

I follow all the steps in this guide:

http://Cordova.Apache.org/docs/en/3.1.0/guide_platforms_blackberry10_index.MD.html#BlackBerry%2010%2...

Thank you very much, but my problem has been resolved

I did the following:
1 remove the "cordova" folder in this path: C:\Users\lolo\AppData\Roaming\npm\node_modules

2 uninstall 'cordova' tool 'MNP '.

3. install "cordova" once again using tool "MNP".

4 make sure that the "C:\Users\lolo\AppData\Roaming\npm\node_modules\" is path empty.

5 run the commands of cordova by using tools inside the folder of the platform; example: C:\Users\lolo\hello\platforms\blackberry10\cordova\ > build

Tags: BlackBerry Developers

Similar Questions

  • Question about the roadmap WebWorks and Cordova

    Hi, in the WebWorks Raodmap [1] is the following statement:

    In order to make the promise of HTML5 cross-platform development even more real, we will be leveraging the Apache Cordova open source project as the heart of the WebWorks SDK for BlackBerry 10. This will allow BlackBerry web developers to more seamlessly leverage a much wider array of tools and frameworks being built around the "center of gravity" for mobile web applications.
    

    What exactly is? Cordova will replace the Webworks API?

    [1] https://developer.blackberry.com/html5/downloads/roadmap/

    "To make the promise of cross-platform HTML5 development even more real, we will be relying on the open source Apache Cordova project as the heart of the WebWorks SDK for BlackBerry 10. This will allow BlackBerry web developers to more easily exploit a range much more wide tools and frameworks under construction around the 'centre of gravity' for mobile web applications. »

    We'll disect this declaration and I'll add what I can:

    'we will be relying on the open source Apache Cordova project as the heart of the WebWorks SDK for BlackBerry 10' - this means you can think of the future of WebWorks BB10 as being "built" on top of Cordova. So our API and support for the creation of webviews etc. will be built above the standards defined in the project of Cordova.

    "This will allow BlackBerry web developers to more easily exploit a range much more wide tools and frameworks under construction around the 'centre of gravity' for applications web mobile."-there are currently groups creation tools to work on top of Cordoba; Maybe your favorite editor has already Cordova or PhoneGap support. This will mean that you can use in your development BB10, without worrying about the specific tools BB only.

    At the end of this process should in theory be easier to work with WebWorks.

  • [ERROR] Cordova initialization error: undefined

    Hello

    I've developed a web application using cordova 3.5.0 and it works very well in my Z10, however there is an error when starting the application that says

    [ERROR] Cordova initialization error: undefined

    After pressing OK app works very well. I can't use Web Inspector, because the error is thrown until it is available.

    That's what I use to get the operational application

    Cordova, run blackberry - liberation - devicepass 123456 - 123456 keystorepass

    I use 10.2.0.1155 - BlackBerry 10.2 native SDK under Windows 7

    Thank you!

    Error disappeared after migrating to webworks, as described in the http://stackoverflow.com/questions/24479526/error-initializing-cordova-undefined

  • And then visualize it PhoneGap/Cordova download file to the device

    I'm doing a magazine app that downloads images to the device for the magazine can be read when offline or with a bad internet connection.

    I use PhoneGap/Cordova version 3.1 with 10 of BlackBerry and plugins file and file transfer. I made a few changes to my code base that runs on Android and iOS since before he could download files on the Simulator. Ensure the directory that I wanted to save the file to exist and access to the file with the path indicated in fs.root.toURL ().

    But now that I got the files uploaded to the device I can't view. On other platforms, I was able to use theFileEntry.toURL () and set it as the source for an img tag. But for BB10 I see only an empty img tag. =/
    The specified local path is: filesystem:local:///persistent/bblogo.png

    I was searched and seen references to disabling sandbox and by saving the file on blackberry.io.shared or blackberry.io.home, but blackberry is not available for me with PhoneGap 3.1. Looking at the native documentation , that I saw that the shared path is/accounts/1000/shared but trying to browse the file system I am told that the path does not exist. (fs.root.getDirectory ('accounts') to start with).

    I have a GitHub repository with what I'm looking for here: https://github.com/gaqzi/phonegap-bb10-file-transfer-test
    The code in question is here: https://github.com/gaqzi/phonegap-bb10-file-transfer-test/blob/master/www/js/index.js#L38

    I also noticed that the size of the file when the download is complete is much larger than the actual size of the file on my computer. And the same code running on iOS I see not enough to increase the size of the file. I don't know if that has to do any.

    To try to combat the current file size wildly different I coded an image 10 x 10 pixels as Base64, she decoded on the device and saved. Now, he pointed out the same size on my computer and the device, but still can not see. The same exercise done on iOS gives me a visible image.

    For the code on the test of Base64, please see my thread Stack Overflow for this: http://stackoverflow.com/questions/19421245/blackberry-10-cordova-phonegap-3-1-filetransfer-image-do...

    I am at a loss what can I do to access the files I created, anyone has an idea?

    Hello

    The patch for the cordova file api is still ongoing. Until that of land, here is an example for download of an image and inject it into the DOM. It uses XHR, but the filetransfer plugin should work as well.

    https://gist.github.com/jeffheifetz/c1127b4d3e132ffff972

    You will need to 'blackberry.io', which is available as plugin PhoneGap/Cordova here:

    https://github.com/BlackBerry/Cordova-BlackBerry-plugins/tree/master/plugin/com.BlackBerry.IO

    The patch will automatically update toURL so that it returns the full path which has been hard-coded in the example.

  • 'undefined' is not a function (cordova.exec assessment)

    Hello

    I have this error ['undefined' is not a function (assessment cordova.exec)] when I invoke barcodes

    window.plugins.barcodeScanner.scan (function (result) {}

    });

    in q10 (BB10) mobile blackberry but there is no question on Blackberry (Blackberry toruch 9830) smartphones.

    Please help solve this problem.

    Thank you

    Balakrishna.P

    It seems a bit of lag in versions.

    For example, Cordova did not support officially BlackBerry 10 up to 3.1.0.

    In addition, Cordova and WebWorks are two platforms of separate packaging. And SDK WebWorks 1.0.4.11 is not * Cordova based. For Cordova features, you must use 2.1.0.13 or later:
    https://developer.BlackBerry.com/HTML5/download/

    I highly recommend reading the above documentation on getting started with WebWorks. Without the appropriate version of the software, I expect some pieces of code in order to continue to fail.

  • 10 questions with Ant Build QNX BlackBerry + PhoneGap (Córdoba)

    Hello;

    I am experienced in creating applications for the BlackBerry platform and am currently deploy a sample application with PhoneGap (Córdoba) with BlackBerry WebWorks for the BlackBerry 10 Beta (QNX) , without great success. I'm following the instructions in the guide of PhoneGap Getting Started Guide for BlackBerry , linked to their developers blog.

    The sixth step of the guide mentioned above, I get a few questions where theorg.apache.cordova function is not found, as well as all the features of blackberry.* :

    D:\Work\Development\PhoneGap\workspace\sample>ant qnx build
    Buildfile: D:\Work\Development\PhoneGap\workspace\sample\build.xml
    
    qnx:
    
    build:
    
    generate-cod-name:
         [echo] Generated name: cordovaExample.bar
    
    clean:
       [delete] Deleting directory D:\Work\Development\PhoneGap\workspace\sample\build
    
    package-app:
        [mkdir] Created dir: D:\Work\Development\PhoneGap\workspace\sample\build\widget
         [copy] Copying 24 files to D:\Work\Development\PhoneGap\workspace\sample\build\widget
         [copy] Copying 1 file to D:\Work\Development\PhoneGap\workspace\sample\build\widget
         [copy] Copying 1 file to D:\Work\Development\PhoneGap\workspace\sample\www\js
          [zip] Building zip: D:\Work\Development\PhoneGap\workspace\sample\build\cordovaExample.zip
    
    build:
         [exec]
         [exec] D:\Work\Development\PhoneGap\workspace\sample>"C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.2.9\dependencies\node\node.exe" "C
    :\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.2.9\lib\bbwp.js" D:\Work\Development\PhoneGap\workspace\sample\build\cordovaExample.zip -o D:\
    Work\Development\PhoneGap\workspace\sample\build
         [exec] [INFO]    Populating application source
         [exec] [INFO]    Parsing config.xml
         [exec] [WARN]    Build ID set in config.xml [version], but no signing password was provided [-g]. Bar will be unsigned
         [exec] [WARN]    Failed to find feature with id: org.apache.cordova
         [exec] [WARN]    Failed to find feature with id: blackberry.find
         [exec] [WARN]    Failed to find feature with id: blackberry.identity.phone
         [exec] [WARN]    Failed to find feature with id: blackberry.pim.Address
         [exec] [WARN]    Failed to find feature with id: blackberry.pim.Contact
         [exec] [WARN]    Failed to find feature with id: blackberry.io.file
         [exec] [WARN]    Failed to find feature with id: blackberry.utils
         [exec] [WARN]    Failed to find feature with id: blackberry.io.dir
         [exec] [WARN]    Failed to find feature with id: blackberry.app.event
         [exec] [WARN]    Failed to find feature with id: blackberry.system.event
         [exec] [WARN]    Failed to find feature with id: blackberry.widgetcache
         [exec] [WARN]    Failed to find feature with id: blackberry.media.camera
         [exec] [WARN]    Failed to find feature with id: blackberry.media.microphone
         [exec] [INFO]    Generating output files
         [exec] [INFO]    Info: Package created: D:\Work\Development\PhoneGap\workspace\sample\build\simulator\cordovaExample.bar
         [exec] [INFO]    Info: Package created: D:\Work\Development\PhoneGap\workspace\sample\build\device\cordovaExample.bar
         [exec] [INFO]    BAR packaging complete
    
    BUILD SUCCESSFUL
    Total time: 8 seconds
    
    D:\Work\Development\PhoneGap\workspace\sample>
    

    Note that the org.apache.cordova function is not found, as well as all the features of blackberry.* .

    Ignoring the warnings and deployment on the BB10 Simulator results in this error: http://i.imgur.com/aUcPM.png

    It is worth noting that none of the warnings above or the runtime error occurs when you deploy to the PlayBook instead of 10 of BlackBerry.

    It would be appreciated if no guidance can be given to help solve this problem.

    Thank you very much.

    It is fully supported, it uses just a different implementation internally (that's why he needs different compared to the PB and BB7 and below feature identifiers).
    I did remove the org.apache.cordova line because it doesn't cause any damage to my application.
    I think the WebWorks Packer tries to find an org.apache.cordova in the folder SDK WebWorks to copy into the folder bar, while in reality org.apache.cordova already exists in your folder www is also copied in the file bar. (Yet I still think that this line is always necessary to access the API of Cordoba on the device)

  • [ERROR] Feature is not found in any extension (org.apache.cordova)

    Hello

    I am trying to compile and sign my application and faced with the question:

    c:\BBWP\bin>java-jar bbwp.jar 'C:\Project\Projet RIM\App\Test.zip' g - o "C:\Project\Projet RIM\AppSigned" mypassword
    [INFO] Parsing of the command line options
    [INFO] Bbwp.properties analysis
    [INFO] Validation of archive application
    [INFO] The analysis of config.xml
    [INFO] The application of filling source
    [ERROR] Feature is not found in any extension (org.apache.cordova)

    The configuration is based on:

    > JDK 1.7

    > Ant 1.8.4

    > Blackberry SDK 2.3.1.5 Webworks

    > PhoneGap 2.0.0

    I have alread experienced solutions on several forums, such as:

    https://groups.Google.com/Forum/?fromgroups=#! phonegap/hY6bkLJWEVA/topic

    http://StackOverflow.com/questions/10978834/PhoneGap-1-8-BlackBerry-failed-to-find-feature-with-ID-o...

    but without success.

    The error still remains.

    Is someone can help me?

    THX

    Sorry if I posted this message in the wrong queue. I found the solution to my problem:

    I have not used the Test.zip file.

    1 / the project is initially placed at:

    C:\Project\Projet RIM\App\Test

    2 / after the compilation with the 'build Ant blackberry' command, the project Test.zip is generated in

    C:\Project\Projet RIM\App\Test\build

    3 / If the command to use to sign within a seoncd period must be:

    C:\BBWP>bbwp 'C:\Project\Projet RIM\App\Test\build\Test.zip' g - o mypassword
    "C:\Project\Projet RIM\AppSigned".

    4 / the output files are then

    C:\Project\Projet RIM\AppSigned

  • PhoneGap iOS build questions

    Hello world

    I have a few questions.

    Sometimes it emits

    Error - the following basic plugin is causing the generation fails and may need to be updated to a newer version: dialog boxes

    And sometimes.

    Error - the following 3rd-party plugin causes the generation fails and may need to be updated to a newer version: com.phonegap.plugins.PushPlugin

    What should I do?

    my config file

    < name = "" org.apache.cordova.device gap: plugin ' spec = "0.3.0" / > "

    < name of the ditch: plugin = spec="0.2.11"/ ' org.apache.cordova.device - motion ">

    < name of the ditch: plugin = spec 'orientation' org.apache.cordova.device = "0.3.11" / >

    < name = "" org.apache.cordova.inappbrowser gap: plugin "source ="MNP"spec="1.5.0"/ >"

    < name of the ditch: plugin = spec "org.apache.cordova.network - information" = "0.2.15" / >

    < name = "" org.apache.cordova.splashscreen gap: plugin ' spec = "1.0.0" / > "

    < name = "" org.apache.cordova.console gap: plugin ' spec = "0.2.13" / > <!-mandatory - > "

    < name = "" org.apache.cordova.geolocation gap: plugin ' spec = "0.3.12" / > <! – necessary only if you use the geolocation - > "

    < name = "" org.apache.cordova.dialogs gap: plugin ' spec = "0.3.0" / > <!-mandatory - > "

    < name = "" com.phonegap.plugins.pushplugin gap: plugin ' spec = "2.5.0" / > <!-required-> "

    You should not use plugins from the old, obsolete bmp repo.

    You should not use the old names of plugin and rely on the conversion of BMP NGP

    You should not set the old versions without reason.

    I suggest you use the latest versions of the plugins of the NPM. Be aware that they are named differently.

    See the Docs of BMPS, section Configuring > Plugins

  • migrate your app (s) to Apache Cordova v.4.1.1 error

    Hi all

    Please someone help me with the error above. I bought a codecanyon.com Phonegap mobile application script. I managed to create an app out of it. on the same download, I received the following Google e-mail. Help, please

    Hello game Google Developer,.

    We rejected MP Taxi Cab | Taxi, with package name com.phonegap.MPTaxiCab services, for violation of the policy of our malicious behavior or user data. If you have submitted an update, the previous version of your application is still available on Google game.

    This application uses a software which contains flaws in security for users or allows the collection of user data without proper disclosure.

    Here is the list of issues and the corresponding versions of APK that were detected in your recent presentation. Please update your app (s) as soon as possible and increment the version number of the APK improved.

    VulnerabilityAPK version (s)
    Apache Cordova

    The vulnerabilities are fixed in Apache Cordova v.4.1.1 or higher.

    You can find information about how update in this article in the Google Help Center.

    11

    To confirm that you have upgraded correctly, present the new version of your app on the Developer Console and check to ensure that the warning is gone after five hours.

    While these vulnerabilities may not affect every application that uses this software, it is best to stay up to date on all security patches. Make sure you update all libraries in your application that have experienced security problems, even if you are not sure that the questions are relevant to your application.

    Applications must also respect The Distribution Agreement of the developer andthe developer program policies.

    If you think that we have taken this decision in error, please join oursupport team policy.

    Best,

    The Google game team

    I asked for the version, too.

    June 2015, Google has started to reject applications built with what that it is less than PGB5.x, for security reasons.

  • How to resize Webview Cordova in iOS?

    I'm following the documentation on this page:
    Integrating the Webview. PhoneGap Docs

    I used the approach of cocoa pods and I use the latest version of xcode and swift with the sample ios phone gap project, so cordova 4.01.

    The application runs fun and together testing JS-> Native communications seem to work too well.  However, the problem is that I can't resize the Web display so I can put other native controls on the screen.  I'm trying to resize the Web view to allow a space at the top and bottom of the native controls.

    It works if I comment out the plugin 'cordova-plugin-wkwebview-engine' cordova - plugins.js in the sample ios phone gap project, but then of course, no other functions work.  Also, it seems to load correctly sized initially, but then flashes and the Web will once again full-screen.

    I notice that even the demo provided in the documentation video has the same problem, but it seems to be not mentioned or ignored in the video.

    See:

    SWIFT-cordova-demo - YouTube

    Please help with this question and then update the documentation/video accordingly.  Thank you very much!

    Here's the code to my custom view controller which extends the CDVViewController:

    import UIKit

    class GolfViewController: {CDVViewController}

    Override func viewDidLoad() {}

    super.viewDidLoad)

    Do any additional configuration after the loading of the view.

    }

    Override func didReceiveMemoryWarning() {}

    super.didReceiveMemoryWarning)

    Get rid of all the resources that can be recreated.

    }

    Override func viewWillAppear(animated: Bool) {}

    self.view.backgroundColor = UIColor.blueColor)

    self.webView.frame = CGRectMake (self.view.bounds.origin.x,

    Self.View.Bounds.Origin.y + 50,

    Self.View.Bounds.Size.Width,

    Self.View.Bounds.Size.Height - 100)

    super.viewWillAppear (animated);

    }

    /*

    BRAND:-Navigation

    In an application based on the table of Storyboard, you will often want to do a little preparation before navigation

    Substitute variable func (segue: UIStoryboardSegue sender: AnyObject?) {

    Download the new view controller using segue.destinationViewController.

    Pass the object selected new view controller.

    }

    */

    }

    Thank you Kerri!  I actually thought of doing just what you suggested as a last resort, but I managed to find discover the question late last night...

    There is a plugin called cordova "statusbar-plugin-cordova", that once initialized resizes the image webview take full screen.  This only happens when you defined in the file config.xml for Web display.

    If you delete the plugin (not really necessary for native applications hybrid anyway) or you turn off the "StatusBarOverlaysWebView" preference, then the plugin status bar will not resize itself your webview and the size that you set in "viewWillAppear" is respected and not replaced.  This should be changed in the documentation to gap of official telephone on the incorporation of the display of web pages.

  • iOS 10 people record problem/question

    Hello

    I have a couple of "faces" in the issue of people who are coming in white, but acknowledged same 'face' of many times.  Is anyway to update it for photo comes actually?  At a few faces, I don't know that facial recognition found since it is coming from white.

    Hi JohnP007,

    Congratulations on your iPhone 7 more running iOS 10! I understand that some of your faces in the album of people pull up as a draft and you want to refresh. You can try to use the steps below to fix the faces on the thumbnails in albums.

    Difficulty faces and names mixed-up

    If you notice that there is a photo of someone in a collection that is poorly identified, you can remove it.

    1. Tap the person you want to remove in the album of people > select.
    2. Type Show done face to emphasize his face in every photo.
    3. Press on each photo that is not the person.
    4. Type > not this person.

    Hide people

    You can hide the people or groups that you don't want in your album of people.

    1. Open the album people and press Select.
    2. Touch the people you don't want to see.
    3. Click Hide.

    If you want to see the people that you have hidden, press on show hidden people.

    People in the Photos on your iPhone, iPad or iPod touch

    This should be corrected without delay faces. Please use the Apple Support communities to post your question. Good day.

  • Questions - and answers forgotten

    How to get my 'secret' answers to the questions that I have noted the way back when?

    If you forgot the answers to your questions of security of Apple ID - Apple Support

  • I can't reset the security questions. We received notice as below:

    Hello world

    I can't reset the security questions. We received notice as below:

    "Cannot reset Security Questions."

    We have insufficient information to reset your security questions. "

    Please help me as soon as possible! Thank you very much.

    Hello

    You will need to contact the Apple Support.

    The information is available here:

    Contact Apple for assistance with the security of the Apple ID - Apple Support accounts

    (I'm afraid that no one here can solve the problem for you - this is a user-based community).

  • Question of cloning for SSD upgrade on 12 Macbook Pro

    Previously, I did an upgrade to SSD on my Macbook Air to 2012 according to the instructions of JetDrive transcend. Basically connection via USB 3 and using Mac OS X to clear (and format) disc utilities new SSD, then restore again SSD and then remove the original 128 GB SSD and insert the new 480 GB SSD.  For about a month and so far without problem.

    Now I'm trying to 2012 Macbook upgrade my Pro partner (on 10.11.6).  I got a Crucial SSD MX300 to replace his HARD drive.  Crucial comes with (or recommend) Acronis software.  And a lot of the messages of the forum recommend Carbon Copy Clone.

    My question is if I can use the same method for the cloning of the HD as my Macbook Air (just restore disk of Mac OS X utilities)?  This time, I'm upgrading HARD drive and I don't know if something is different.  At the same time, if I got lucky the first time, I don't not ruin Macbook Pro my spouse this time.

    Thank you.

    Yes, you can use disk utility to clone your MBP wives, but unlike CCC, it will not clone the recovery and Partition.

  • Question about resolution movie downloads

    If I buy a movie at a certain resolution (780p for example), but I want more later re - download at a higher or lower resolution (SD or 1080 p), can I do so and how?

    Same question perhaps for music. Some of my songs have been bought before the latest Apple codecs.

    Any help is appreciated!

    THX!

    Once you have made a purchase on the iTunes store, you will see your purchased items in the menu under accounts bar > bought. You can simply select the item purchased and re-upload.

    With regard to the resolution of the film for films that are offered, and you select the resolution, you can download it again and select a different resolution. For movies that are available as separate download to SD, 780, or 1080 points, you would be limited to the original resolution you selected.

Maybe you are looking for

  • had a problem with mozilla firefox, uninstalled, tried to re = install and get an error "cannot find personal...". »

    I really want to give Fire Fox on my computer. Why can't I re - install.When reinstalling, it goes through all the windows, asking permission... and after that it says "completed" a window pops up saying cannot find personal identification informatio

  • Awakening of computer problems

    When I want to wake up my iMAC computer and I touch the keyboard and the login box appears. I start typing my password, and the process becomes crazy. The box looks randomly and I have to stop and restart my calculation, because it does not allow me

  • Eats CPU - Win XP on Satellite A300 - SATA HDD slow

    Hello I just got a brand new A300-1The for my work. Because we need to install XP and not Vista, I formatted the beast. After a long afternoon chasing all the drivers, it seems that I always have problems.When I initiate a transfer of files between t

  • W540 dock compatibility

    We have three dock posibilities: -base dock -pro docking station -ultra docking station They differ by the number of ports and the power adapter provided with them. I had an opurtunity to try my W540 on dock pro, which normally has 90 w or 65 w AC ad

  • Get an error "Your PC is not connected to Internet" while trying to launch Windows 8 store.

    * Original title: Windows 8 store does not load. Whenever I tried to connect to the Microsoft Store since my laptop Windows 8, it would give me the message "your PC is not connected to the Internet.  To use the store, connect to the Internet and then