BB10 - how to launch the App World of Javascript?

Someone has launched App World as javascript.  I tried this on alpha dev and it does not work:

function openWebLinkInBrowser(URL) {
    // open web link in browser
    blackberry.invoke.invoke({
        target: "sys.browser",
        uri:URL
    }, onInvokeSuccess, onInvokeError);
}

function appWorld(appId)
{
   try
   {

    var url = "http://appworld.blackberry.com/webstore/content/" + appId;
    openWebLinkInBrowser (url) ; 

   }
   catch (e) {
    showCustomToast("There was a problem launching App World", "OK");
   }
}

Here's a Cascades documentation which describes the targets invoke... https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/blackberry_world...

You can do it by issueing what follows is one unbound. As you can see from the documentation, you can also add in the target if you want, but the uri Protocol is the important part.

blackberry.invoke.invoke({
    "uri": "appworld://content/12603",
    "action": "bb.action.OPEN",
    "action_type": "ALL"
})

Please replace the 12603 with the content you want to display.

Tags: BlackBerry Developers

Similar Questions

  • Test Build before submitting to the App World on BB10

    Is there a way for us to test an App World version on a device BB10 before submitting to the App World?

    Looking for simliar ability to ALT - TST we have on BBOS App World.

    Download app and place it in DRAFT mode.

    Add the user to the sandbox (BBID).

    Go to App World on the device alpha dev, app menu goto (slide down), go to settings, select the Mode of development, enter an id of content.

  • I forgot to package ID, not able to update the app World! Help, please

    Hi guys,.

    As the title says, I forgot the package ID, and I'm not able to update the app World! whenever I submit a press release I get an error indicating that the package what ID does not match. Please suggest me what I can do? How to find the package id? Thank you very much. See you soon.

    Goto the BB forum and ask the question. BB has the ability for you to create a new token of dev and map it to the original. I had to do this recently. MShom was the one who did it for me.

  • Invoke the App World

    Hi, how can we call App World and pass our other ID of the application so that it opens right away?

    Thank you

    Page {
                id: tab2
                Button {
                    id: awbutton
                    text: "Click me"
                    attachedObjects: [
                              Invocation {
                                    id: invoke
                                    query: InvokeQuery {
                                    mimeType: "application/x-bb-appworld"
                                    uri: "appworld://content/124432"
                                    }
                            }
      ]
    
                onClicked: {
                invoke.trigger("bb.action.OPEN")
                  }
    
            }
    }
    

    This my code...

  • Person to contact with questions about the presentation of the app world

    If I have a question about the app that I submitted, anyone knows how do I contact someone about this? I can't find anything on the site and respond to notification emails gets me nowhere.

    Hey miss breeder,.

    that will be tough. If you browse the App World his hell out there because of the new development forums and people have a lot of problems with it. I've read people were emailing RIM all week and no responses were received. But if you post a question here MShom (one of the moderators) usually responds in a timely. The support email is [email protected] I believe. Good luck!

  • Flag to set Autostart on request submit to the App World vendor Portal

    Hi all

    I've been wondering. How the device know if my application will be run automatically at startup (when the device starts up) or not, if my application is installed by the user from the App World?

    I thought that the autostart flag is stored in the Blackberry App descriptor XML file then reflected to the .jad file once I've compiled my app.

    Presentation on the App World vendor Portal requires only the .cod files, not the descriptor xml file or a .jad file.

    The autostart flag is also stored in the .cod file?

    Yes

  • Why my apps are in the app world, even if it is not "for sale."

    Hi, why my apps for BB10 are in the app world even if it is not "for sale"?

    I don't want them to be shown, because I need to fix some things

    Hi smartek,.

    Can you send me the name of the application (and ID if you have one).  I'll take a look.

    The current Alpha Dev devices are pointing to a different environment, so I want to make sure that your application is not "for sale" in the secondary environment (sounds like they are).

  • Performance of applications in the App World of device but not in the Site

    At 01:00 on Friday, I received an email saying that my app was approved and published for sale, I checked the portal provider and everything was correct. When I searched my app in App World on my PlayBook and my DevAlpha app were found without any problems, but when I tried to search in the App World web site so I can get a link to share, I could not find the app, and it is not listed in my profile App World. Someone at - he already experienced this? Is there a solution? 3 days ago and I did not always share the app because of this problem.

    In addition, I was reading this forum today and I saw vague messages about BB10 apps appears, that is the question? My application is for PlayBook and BB10.

    I can't answer why she does not appear, but you have no need to find where to get a link to it.

    Enter the provider portal and click on manage products. Click on the entry of the application itself, to access the "Edit product" page with the first 'Info' tab product  The first thing listed is an ID, as for my app battery Guru: 'ID 51274.

    Just take any app URL and replace the id with the number for your and you're good.  For my example, guru of the battery is https://appworld.blackberry.com/webstore/content/51274 .

  • StageWebView - does not support links in the app world

    Anyone who has ideas on how to get StageWebView in your game supporting type links "http://appworld.blackberry.com/webstore/content/xxxxx"?

    If you click on one of these links in your html from an instance of StageWebView it reports:

    «Error: the browser doesn't know how to handle web page.»

    This is still part of my quest to provide an easy way to update/display for PlayBook users my other games that are available.  It would be so easy if there was a simple way to open a page of the seller in the app world app of your game.  No really good luck so far.  The idea of StageWebView was great, until I discovered it's the inability to manage the links of appworld.

    OK, so here is how I solved this now:

    private function openAppWorldLink(e:UnknownProtocolEvent):void {
        moreGamesWebView.stop();
        openURL(e.url);
    }
    

    I add an event listener to the QNXStageWebView to a UnknownProtocolEvent instance.  Who is fired off the power as soon as you click on the link "http://appworld.blackberry.com/blah/blah".

    You can see that I don't then stop any additional load (I did because otherwise you see 'ERROR' screen for a bit, and I thought that ugly).

    I then enter the url of the event and open it upwards (this is just a custom function that basically a call navigateToURL on the url string.

    It works great even if you do not see the error screens, it opens to the top of the page of game in appworld and I can update my html page customized each games change/update.

    Thanks for your suggestion to consider the QNX events!

  • BlackBerry Torch 9810 smartphones does not accept the App World Ts & Cs and can not install applications

    Hi, I had a search in the forums and knowledge base and has not been able to find an answer to this problem.

    I have a new Blackberry Torch 9810 on O2 to the United Kingdom. I have Blackberry App World installed and I have App update the icons in the my messages folder. Whenever I try to go to my Apps and install updates in the App World, I get the terms and conditions window if poster, I scroll down, click on 'accept' and the window disappears and nothing happens. I click on my Apps again, same thing, window appears again.

    I uninstalled App World and reinstalled and I still get the same problem, I can not get the Ts & Cs to accept so can't update my apps or install others. If someone else has had this problem and is there a solution?

    Thanks for your time.

    Ant

    OK... try this...

    (1) make sure that you already have the RIM desktop software installed on your PC:

    and have executed at least once with your BB attached (so that it can do it's initial configurations).

    (2) attached via the USB port of your PC (the software didn't need to run)

    (3) launch the browser on your PC and go here:

    Leave the plug in install and 'connect' to your BB ID account (via the browser/PC)

    See if that allows things to configure correctly.

  • How to disable the App tabs (tablets should) start automatically?

    How to disable the App tabs (tablets should) start automatically?

    because the option [don't load the tabs up to choosing] dose does not work with her, and she keeps starts every time when I restart Firefox.

    Please help me!

    Don't bother, I arrived at the solution of my car, you can do the following:

    Type "subject: config" [without quotes!] in the location Bar (address bar) and press ENTER to display the list of preferences, as shown in the photo #1 in Firefox 17 under Windows 7.

    If you see a page with the warning as pictured #2, this might void your warranty!, click the "I'll be careful, I promise!" button to continue (in fact, there is no guarantee that it is, it's more a joke to ensure that users are aware of what they are about to do). Uncheck the box to avoid the warning in the future.

    Now to the search bar in the image #3 type: tab and search for it

    preference name:
    

    Browser.sessionstore.restore_pinned_tabs_on_demand

    or you can copy directly to the search bar.
    Then, follow the instructions in the photo n ° 3 .

    Just in case where if the photo appears, follow these steps:

    First: Right-click on the name of the preference that we sought.
    Then, click Toggle to change the value from false to true.
    Or, double-click it and it will change.
    Finally, restart Firefox, and you'll notice that they don't automatically load until you click on it.

    That's it, good luck to all. ;-)

    Note: the list of fonts preferences fat is the user changed, and the United Nations-fat is the default setting.

    Warning: change preferences can, in rare circumstances, break Firefox, Thunderbird or Mozilla Suite, or cause strange behavior. Only do if you know what you're doing or trustworthy tips.

    Additional INFORMATION:

    Subject: config is a feature of Mozilla applications which lists application settings (known as preferences) that are read from the profile files prefs.js and user.js and the default application. A lot of these preferences are not present in the preferences or Options dialog box. Using about: config is one of the many methods of changing the preferences and adding the other 'hidden '.

  • How reset you the app to drive zero when you have completed a workout?

    How reset you the app to drive zero when you have completed a workout?

    Hi Larry

    When you are ready to complete your workout, press firmly on the view > press end > turn the digital Crown to scroll the summary results > at the bottom of the summary, touch save or delete.

    More information:

    Use of the workout on your Apple Watch - Apple Support

  • How to launch the wifi on a new computer Satellite L350?

    Hello.

    I have just bought a new Toshiba L350 this morning, but I do not know how to launch the Wi - Fi system?

    Thanks for your replies.

    Hello

    Usually, you will be the WLan switch on IT and must use the FN + F8 key combination.
    This should allow the WLan.

    But just one question: why you n t read the user manual? My laptop has been preloaded with manual if the PDF file format

    Was easy to find all the details and inof

  • How to drag the apps? to force no click trackpad... I think they remove this features for elcapitan

    How to drag the apps? for a force not click trackpad...
    I think that they remove this features for elcapitan

    Select the application, and then hold down the trackpad (click), pressed with the left hand, while you use your right hand to drag the app.

    Note: This creates an alias to the place where you drag where you want to move , you also need the CMD key at the same time.

  • Attributes of appeal for the app world

    I have the code below is show as a double in my application on the alpha of dev, but on the sim card, it shows one. Can someone tell me what im hurt please thank you. Its an Invocation to open the app world.

          InvokeActionItem {
                title: "Leave a Review"
                ActionBar.placement: ActionBarPlacement.InOverflow
                imageSource: "images/Spaceship.png"
                query {
                    mimeType: "application/x-bb-appworld"
                    uri: "appworld://content/133047"
                }
                onTriggered: {
                    invoke.trigger("bb.action.OPEN")
                }
            }
    
          ActionItem {
                title: "Leave A Review"
                imageSource: "asset:///images/"
                onTriggered: {
                    invokeLeaveReview.trigger("bb.action.OPEN");
                }
            }
        ]
        attachedObjects: [
            Invocation {
                id: invokeLeaveReview
                query: InvokeQuery {
                    mimeType: "application/x-bb-appworld"
                    uri: "appworld://content/133047"
                }
            }
        ]
    

    figured it out

Maybe you are looking for

  • Downloaded avg toolbar with avg search, my computer installed says it is not sho up on top of the Web page

    I downloaded the AVG toolbar and search engine. My computer says it installed - only it does not appear when I open Firefox. For what is - that is, when I downloaded it on my account (same computer) Admin it worked very well, but not transfer on my s

  • Win XP on Qosmio X 300 - 13F

    Hello I would like to purchase a Qosmio X 300 - 13F, but I'm not sure if I can find that all need the drivers for WIN XP. Someone at - it experience install the OS depending on the computer laptop a.m..?Win XP 32Win XP 64SuSe Linux 64 I just want to

  • ThinkStation C20 and GeForce GTX 570

    Hello SRY for my bad English (German here). I have a C20 ThinkStation and today my Palit GeForce GTX 570 arrived. The problem now is that the delayed of the interface is on the side... and I can't close my C20 more... because of the thickness of the

  • Photosmart HP 7520: ip address for web services is not on the printer properties

    Printer is a HP Photosmart 7520, I have this printer is installed on computers laptops HP two and two are running Windows 7 Pro.  On one of the laptops (mine), when I click on devices and printers, and then right-click on my default printer that is t

  • . Graph CSV files

    Hello I am trying to display waveforms stored in a Lecroy oscilloscope .csv files. An example of these files is attached. I can't seem to view the waveforms (10 k points), it seems that Labview does not recognize the technical format with decimal poi