And the hits keep on coming…BlackBerry 10 WebWorks Update

Announcements

BlackBerry 10 WebWorks SDK Refreshed

In keeping with our goal of delivering fresh content frequently through the summer, we are pleased to announce the release of a new version of the BlackBerry® 10 WebWorks™ SDK. And this one is a doozy. It really provides a platform to build on for making high quality, integrated BlackBerry® 10 applications using web technologies. It also provides the groundwork for future updates throughout the summer and fall, filling out the API set to support a wide-range of use cases.

Now, where to start…

Invoke

You will be seeing a lot about the Invoke framework when it comes to BlackBerry 10 application development. Invoke provides the mechanisms for interacting with other applications and services on the device, both system and third-party. And it works both ways: you can invoke another application to access some functionality; you can register to be a target for invocation based on a pre-defined or custom “Action”, and for specific types of data. This one deserves its own blog post, so stay tuned as one will arrive in the not too distant future. Needless to say, you will want to get intimate with this API, as it is one of the cornerstones of the BlackBerry application value proposition of deep integration with the system and third-parties. Please refer to the following Knowledge Base article for details on some known issues which will be addressed in an upcoming patch.

File and File Transfer

In previous versions of BlackBerry WebWorks for BlackBerry® OS and BlackBerry® PlayBook™ tablet, there was a blackberry.io.file API to allow for management of files on the device. With the latest version of the WebKit engine, we now have support for the HTML5 File specification, so this is your route to file system access on BlackBerry 10. This is in keeping with our general strategy of alignment with the open web and standards.

One thing to be aware of with the File API is that, by default, it will act exactly like in a typical browser environment in that the application will only have access to a local sandbox area (enforced by browsers for security reasons). Since application development is different from a browser-based environment, we have provided an API (blackberry.io.sandbox = false;) that will allow you to create an un-sandboxed file system that will be at the root of the device file system.

Also in blackberry.io are a couple of properties that direct you to points of interest on the filesystem, such as the Shared folder, and the home folder of the application which are useful in an un-sandboxed environment. Device permissions for read/write etc. are enforced, as well as perimeters in a BlackBerry® Balance™ environment (i.e the blackberry.io.sharedFolder property will point to the correct Shared folder in the perimeter that the application was installed into.). Whitelisting is enforced on domains when it comes to the sandboxing logic, so security is preserved.

One of the key things we were missing for BlackBerry OS and BlackBerry PlayBook OS was the ability to work with remote files. Being able to upload and download files is a natural extension of the filesystem API, and with BlackBerry 10 you can now create an app to upload to the interwebs as many pictures of your food as you like. Check out the blackberry.io.filetransfer API. Your filesystem just got more powerful.

blackberry.io.filetransfer.download(
        "http://myfiles.org/mypdf.pdf",
        blackberry.io.sharedFolder + "/downloads/mypdf.pdf",
        function (result) {
              alert("Download successful");
        },
        function (result) {
              alert("Download failed");
       } );

Push

Everyone likes being pushed around! OK, maybe not. But you definitely like knowing the latest as soon as it happens. This is one of the hallmarks of the BlackBerry solution: getting relevant information right away, without having to ask for it. This is Push. And in keeping with every BlackBerry WebWorks platform to date, you can integrate your application with Push-enabled services using the blackberry.push API. The APIs are more streamlined in BlackBerry 10, especially in that it abstracts away the differences between BlackBerry Enterprise Server and BlackBerry Internet Service push, so you no longer need to worry about that. Watch this space for a dedicated article on the Push APIs coming soon.

Context Menu

One of the UI cornerstones for BlackBerry 10 is the context menu. When the user of your application long-presses on an element in your page, the context menu will slide in from the right and present standard actions for the given context. So when the user long-presses on an image, you will get actions such as “Save Image”. At this stage, the context menu will be populated with system defined actions. In future updates to BlackBerry WebWorks we will provide APIs that will allow you to customize the menu with your own secret sauce.

Swipe Down Event

A small event, but oh so powerful. The swipedown event will be triggered when the user swipes down from the top bezel into the application content. What most people will use this for is to render a menu that comes in from the top of the screen, as you will find with many applications on the BlackBerry PlayBook tablet. Often this menu will be used for application settings and options. You can also find a very useful sample of how to make this happen in our open source GitHub repo at https://github.com/blackberry/WebWorks-Samples/tree/master/swipemenu

Multiple, Localizable Splash Screens and Application Icons

With this release, you are now able to specify multiple icons and splash screens for your application. This is to cover different screen resolutions in the future, and for when the device orientation changes. Make sure you have a splash screen for both landscape and portrait orientation. Further, you can also specify splash screens and icons for different languages. When the device language is changed, the system will use the appropriate icon or splash screen. This is accomplished through a folder in your application called /locales. And all you need to specify in your config.xml is the main version of the images, and the system will take care of the rest. See our documentation for more details.

Ripple

A Ripple update is being polished off as we speak and will be delivered very soon. We have updated Ripple to improve the configuration by removing the requirement to manage the build and deploy services yourself. Now Ripple will start and stop the service for you. Further, we have emulation for the invocation framework as well as the swipedown event. Cordova emulation also got a lot of love with most of the API set now emulated, thanks to a big helping hand from the Cordova group themselves (shout out to @filmaj and @mwbrooks). We’ll update you as soon as it is released to the site.

Open Source

As I have indicated in the past, we are hard at work on the upcoming releases already. Check out our GitHub repos to see the latest goings-ons, and shenanigans, and such-and-suchs.

For BlackBerry WebWorks SDK work, check out:
https://github.com/blackberry/BB10-Webworks-Packager
https://github.com/blackberry/BB10-Webworks-Framework
https://github.com/blackberry-webworks/BB10-Webworks-API

Ripple? Check out:
https://github.com/blackberry/Ripple-UI

API reference:
https://github.com/blackberry/WebWorks-API-Docs

Getting started

We are really looking forward to see what you will build with these new updates. Click here to download the new SDK and get started!

Have fun with this release!

About Ken W

Ken is the Senior Product Manager for the WebWorks group at BlackBerry. He is responsible for WebWorks tooling and is heavily involved in the Open Source projects at github.com/blackberry and the Apache Cordova community. Ken has a particular interest in trying to bring the internal and external BlackBerry development communities closer together.

Join the conversation

Show comments Hide comments
+ -
  • http://www.bbnews.pl/2012/07/rim-aktualizuje-sdk-webworks-dla-blackberry-10/ RIM aktualizuje SDK WebWorks dla BlackBerry 10 | BBNews

    […] informacji można znaleźć pod tym adresem. SDK dla WebWorks dostępne jest w tym miejscu. Categories: Research In […]

  • http://thetechieguy.com/2012/07/19/blackberry-updates-the-blackberry-10-toolkit/ Blackberry updates the Blackberry 10 toolkit | The Techie Guy – Liron Segev

    […] info: Please visit the Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 […]

  • http://www.technobuffalo.com/companies/blackberry/rim-updates-toolkit-for-blackberry-10-developers/ RIM Updates Toolkit for BlackBerry 10 Developers | TechnoBuffalo

    […] visit the Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 for more […]

  • http://genteblackberry.wordpress.com/2012/07/19/actualizado-blackberry-10-webworks-sdk-beta-con-invoke-push-api-y-mas/ *ACTUALIZADO* BlackBerry 10 WebWorks SDK Beta con Invoke, Push API, y más! | News Channel

    […] En todo lo que debería salir antes de la nueva BlackBerry 10 WebWorks SDK beta .Usted puede encontrar más detalles en el anuncio completo aquí . […]

  • http://www.miblackberry.com/2012/07/19/rim-actualiza-el-conjunto-de-herramientas-blackberry-10-para-desarrolladores.html RIM actualiza el conjunto de herramientas BlackBerry 10 para desarrolladores | miBlackBerry.com | BlackBerry

    […] favor, visita el Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 para más […]

  • http://kopiarki.biz/kserokopiarki-2/rim-updates-blackberry-10-developer-toolkits/ RIM Updates BlackBerry 10 Developer Toolkits - Kserokopiarki Kopiarki Wielofunkcyjne

    […] visit the Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 for more […]

  • http://www.berryeg.com/rim-updates-blackberry-10-developer-toolkits/ RIM Updates BlackBerry 10 Developer Toolkits | .::BerryEG::.

    […] visit the Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 for more […]

  • http://www.flabbertech.it/rim-aggiorna-i-toolkit-per-gli-sviluppatori-blackberry-10/ RIM aggiorna i toolkit per gli sviluppatori BlackBerry 10 | Flabbertech

    […] l’Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 per ulteriori […]

  • http://www.mondoblackberry.com/2012/07/20/rim-aggiorna-i-toolkit-per-gli-sviluppatori-blackberry-10/ RIM aggiorna i toolkit per gli sviluppatori BlackBerry 10 | MondoBlackBerry.com

    […] l’Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 per ulteriori […]

  • http://perusmart.com/2012/07/20/rim-fomenta-a-los-desarroladores-del-blackberry-10-actualizando-los-kits-de-desarrollo/ RIM fomenta a los desarroladores del BlackBerry 10 actualizando los kits de desarrollo : Peru Smart

    […] Para mayor información, por favor visite el blog Inside BlackBerry Developer Blog: Soporte a HTML5 y Desarrollo Web para BlackBerry 10. […]

  • http://www.chozadigital.com/?p=13817 RIM actualiza kits de herramientas para desarrolladores de BlackBerry 10

    […] Para mayor información, por favor visite el blog Inside BlackBerry Developer Blog: Soporte a HTML5 y Desarrollo Web para BlackBerry 10. […]

  • http://www.technocracia.com/2012/07/20/rim-actualiza-sus-herramientas-para-desarrolladores-en-mira-al-blackberry-10/ RIM actualiza sus herramientas para desarrolladores en mira al BlackBerry 10 | Technocracia

    […] Para mayor información, por favor visite el blog Inside BlackBerry Developer Blog: Soporte a HTML5 y Desarrollo Web para BlackBerry 10. […]

  • http://itusersmagazine.com/ya-esta-abierto-blackberry-app-world-para-aplicaciones-blackberry-10/ Ya está abierto BlackBerry App World para aplicaciones BlackBerry 10

    […] Para mayor información, por favor visite el blog Inside BlackBerry Developer Blog: Soporte a HTML5 y Desarrollo Web para BlackBerry 10. […]

  • http://centroblackberry.com/2012/07/rim-actualiza-el-conjunto-de-herramientas-bb10-para-desarrolladores-cbbnews/ RIM actualiza el conjunto de herramientas BB10 para desarrolladores #CBBNews | CentroBlackBerry

    […] favor, visita el Inside BlackBerry Developer Blog: HTML5 Support and Web Development for BlackBerry 10 para más […]

  • http://www.depannage-pc-informatique.fr/rim-met-a-jour-ses-outils-de-developpement-pour-blackberry-10/ RIM met à jour ses outils de développement pour BlackBerry 10 | Depannage pc informatique

    […] 10Publié le 21 juillet 2012 | Par admin Le constructeur canadien Research in Motion a déployé une mise à jour de son pack de développement WebWorks pour BlackBerry […]

  • http://bagapreta.com.br/2012/07/21/rim-atualiza-ferramentas-de-desenvolvimento-para-blackberry-10/ RIM atualiza ferramentas de desenvolvimento para BlackBerry 10

    […] informações no blog do desenvolvedor Inside BlackBerry, em Suporte a HTML5 e desenvolvimento web para BlackBerry 10. Em […]

  • http://www.ovet-team.net/rim-met-a-jour-ses-outils-de-developpement-pour-blackberry-10 RIM met à jour ses outils de développement pour BlackBerry 10 | TEAM =OVET=

    […] constructeur canadien Research in Motion a déployé une mise à jour de son container de développement WebWorks pour BlackBerry […]

  • http://devblog.blackberry.com/2012/07/blackberry-10-webworks-sdk-refresh-2/ Remix for the BlackBerry 10 WebWorks SDK | BlackBerry Developer Blog

    […] I am sure you are aware by now, we released a major update of the BlackBerry® 10 WebWorks SDK last week. This brought some awesome features for web developers on the BlackBerry® platform, such […]

  • http://blackberryphoneshop.info/2012/07/24/remix-for-the-blackberry-10-webworks-sdk/ Remix for the BlackBerry 10 WebWorks SDK | BlackBerry and Phone Shop

    […] I am sure you are aware by now, we released a major update of the BlackBerry® 10 WebWorks SDK last week. This brought some awesome features for web developers on the BlackBerry® platform, such […]

  • http://www.berryblog.de/pressemeldung/rim-aktualisiert-blackberry-10-developer-toolkits RIM aktualisiert BlackBerry 10 Developer Toolkits « BerryBlog.de - das BlackBerry Blog

    […] besuchen Sie den Inside BlackBerry Developer Blog HTML5 Support and Web Development for BlackBerry 10 für mehr […]

  • http://macberry.de/blackberry/rim-aktualisiert-blackberry-10-entwickler-toolkits-application-invocation-framework-push-apis/ RIM aktualisiert BlackBerry 10 Entwickler Toolkits, Application Invocation Framework, Push APIs | MacBerry.de

    […] besuchen Sie den Inside BlackBerry Developer Blog HTML5 Support and Web Development for BlackBerry 10 für mehr […]

  • http://news.c4it.tw/?p=31949 RIM 升級BlackBerry 10開發工具套件

    […] 更多相關訊息,請參閱Inside BlackBerry Developer部落格的HTML5 可支援BlackBerry 10 網路開發一文。 […]

  • http://www.poderpda.com/plataformas/blackberry/rim-actualiza-kit-de-herramientas-para-desarrolladores-de-blackberry-10/ RIM actualiza el kit de herramientas para desarrollar en BlackBerry 10 | PoderPDA

    […] Pero si ustedes quieren conocer un poco más sobre soporte a HTML5 y desarrollo Web para BB 10, no dejen de visitar Inside BlackBerry Developer Blog. […]

  • http://nhcbba.com/2012/07/21/blackberry-10-webworks-sdk-beta-gets-a-refresh-with-invoke-push-api-more-2/ BlackBerry 10 WebWorks SDK Beta Gets a Refresh With Invoke, Push API, & More! » The Hawk Smartphone News Radio

    […] All in all you should definitely check out the new BlackBerry 10 WebWorks SDK beta. You can find more details in the full announcement here. […]

  • http://macberry.de/blackberry/blackberry-10/rim-aktualisiert-blackberry-10-entwickler-toolkits-application-invocation-framework-push-apis/ RIM aktualisiert BlackBerry 10 Entwickler Toolkits, Application Invocation Framework, Push APIs | MacBerry.de

    […] besuchen Sie den Inside BlackBerry Developer Blog HTML5 Support and Web Development for BlackBerry 10 für mehr […]

blog comments powered by Disqus