Posted June 11, 2012 by Rapid Yvonne in Developers
 
 

Building Enyo Applications with BlackBerry WebWorks

enyo
enyo

When RIM first released their porting guide for webOS developers, it was more focused on migrating from Enyo to standard HTML5.

However, since both Enyo 1.0 and 2.0 are open source and run on the BlackBerry WebKit Browser, it’s actually even easier to get Enyo applications running on the BlackBerry platform, and RIM will be updating their guide in the next couple weeks.

All you need to get started is available right now though, so let’s take a look.

Enyo 1.0 comes directly from the webOS platform and is designed specifically for that OS, but its main requirement is WebKit, so it’s possible to make it work with BlackBerry 6 OS and up, including the BlackBerry PlayBook tablet and BlackBerry 10. At approximately 7MB, Enyo 1.0 is pretty large, and this can be a problem on OS 6 and BlackBerry 7 OS phones as it’s approaching the size limit for an application install on those phones. However, that’s not an issue on the BlackBerry PlayBook tablet and BlackBerry 10.
Besides running Enyo itself, it’s quite easy to integrate BlackBerry WebWorks extensions into Enyo Applications for native capabilities. The final sample on Github shows how to use BlackBerry WebWorks APIs to capture Application information, show Battery status, track device motion, and interact with the native file system.

View this sample on Github to see how to create a BlackBerry® WebWorks™ config.xml for the Enyo Style Matters sample.

Enyo 2.0 is a new framework based on the ideas behind Enyo 1.0, but now built with cross-platform and mobile targets in mind first. It’s light-weight, highly extensible, and works great on BlackBerry. See this sample on Github for the Enyo Onyx Sampler as a BlackBerry WebWorks application.


Besides running Enyo itself, it’s quite easy to integrate BlackBerry WebWorks extensions into Enyo Applications for native capabilities. The final sample on Github shows how to use BlackBerry WebWorks APIs to capture Application information, show Battery status, track device motion, and interact with the native file system.

Did you enjoy this article? If so, we’d love to hear your thoughts on the Forums or on our Facebook page. Get more articles instantly on your BlackBerry smartphone with our Free BlackBerry 10 App.

Via BlackBerry DevBlog

Enjoy this article? Share it with others.

  • Facebook
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Digg
  • Pinterest
  • Google Plus
  • Tumblr
  • Reddit
  • Instapaper
  • Delicious
  • Email
  • Print