<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BlackBerry Developer Blog &#187; WebWorks Apps</title>
	<atom:link href="http://devblog.blackberry.com/tag/webworks-apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 15:28:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devblog.blackberry.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef0a66c09615fa946c4179662398878?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>BlackBerry Developer Blog &#187; WebWorks Apps</title>
		<link>http://devblog.blackberry.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devblog.blackberry.com/osd.xml" title="BlackBerry Developer Blog" />
	<atom:link rel='hub' href='http://devblog.blackberry.com/?pushpress=hub'/>
		<item>
		<title>BlackBerry 10 WebWorks &#8211; Time To Get Paid</title>
		<link>http://devblog.blackberry.com/2013/02/blackberry-10-webworks-february/</link>
		<comments>http://devblog.blackberry.com/2013/02/blackberry-10-webworks-february/#comments</comments>
		<pubDate>Wed, 13 Feb 2013 14:29:50 +0000</pubDate>
		<dc:creator>Ken W</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[bbm]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[BlackBerry 10 WebWorks]]></category>
		<category><![CDATA[blackberry app world]]></category>
		<category><![CDATA[Gold]]></category>
		<category><![CDATA[payment]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[ripple]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[webworks]]></category>
		<category><![CDATA[WebWorks Apps]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13716</guid>
		<description><![CDATA[Most people like to be rewarded for hard work. There are of course many ways in which people derive reward. Fame. Adoration. Legions of followers on Twitter. Free cookies. But perhaps the most prevalent and obvious is cold, hard cash. With BlackBerry World, there are a number of ways to get money out of your [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13716&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div id="attachment_13718" class="wp-caption aligncenter" style="width: 610px"><a href="http://rimdevblog.files.wordpress.com/2013/02/money.jpg"><img class="size-full wp-image-13718" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/02/money-e1360714788275.jpg?w=600&#038;h=450" width="600" height="450" /></a><p class="wp-caption-text">“Money” by <a href="http://www.flickr.com/photos/9731367@N02/6988272680/" target="_blank">PTMoney/CC/flickr</a></p></div>
<p>Most people like to be rewarded for hard work. There are of course many ways in which people derive reward. Fame. Adoration. Legions of followers on Twitter. Free cookies. But perhaps the most prevalent and obvious is cold, hard cash.</p>
<p>With BlackBerry World, there are a number of ways to get money out of your investment in your BlackBerry 10 application. Today’s refresh of the BlackBerry 10 WebWorks SDK brings support for our<a href="https://developer.blackberry.com/develop/platform_services/payment.html">Payment Service</a>. The Payment Service allows you to implement in-app purchases, either one-time purchases or subscription-based services. Now you can choose your monetization strategy for your BlackBerry 10 WebWorks application: paid download, freemium, in-app purchases, digital goods, etc.</p>
<p>Check out the <a href="http://developer.blackberry.com/html5/apis/blackberry.payment.html">API reference</a> to get started.  You will immediately notice that there are a few new additions to the API compared to previous implementations in BlackBerry WebWorks, such as cancel subscription.</p>
<p>While payment should be enough to get your excited on its own, we also were able to sneak in some of the final bits of the BBM Social Platform &#8211; namely support for the Profile Box.  The Profile Box is a customizable box for your app that appears in the current user&#8217;s BBM profile. You can use it to broadcast achievements or provide updates. The box contains a list of items, each composed of text and an optional icon. The Profile Box API allows you to manage the items in your app&#8217;s profile box. The API reference for this new API is <a href="http://developer.blackberry.com/html5/apis/blackberry.bbm.platform.self.profilebox.html">here</a>.</p>
<p>One final item that you should be aware of is how popup windows are handled. With this release, the popup blocker is disabled by default.  This means that popups will display in the Child Browser window.  If you wish to enable the popup blocker functionality there is a new parameter that you can pass in config.xml to the “blackberry.app” feature.  For information, see the <a href="http://developer.blackberry.com/html5/documentation/param_element.html">&lt;param&gt; element</a>.</p>
<pre>&lt;feature id="blackberry.app"&gt;
  &lt;param name="popupBlocker" value="enable" /&gt;
&lt;/feature&gt;</pre>
<p>Be sure to <a href="http://developer.blackberry.com/html5/download/sdk">download the latest SDK</a>, and check out the Payment service to see how you can develop a richer monetization strategy for your application.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13716/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13716&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/blackberry-10-webworks-february/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3b422c1a037b89d4ddf5bef834dbdeef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kjwallis</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/money-e1360714788275.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>BlackBerry 10 WebWorks SDK January Refresh</title>
		<link>http://devblog.blackberry.com/2013/01/blackberry-10-webworks-sdk-january-refresh/</link>
		<comments>http://devblog.blackberry.com/2013/01/blackberry-10-webworks-sdk-january-refresh/#comments</comments>
		<pubDate>Fri, 11 Jan 2013 01:02:32 +0000</pubDate>
		<dc:creator>Ken W</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[BlackBerry 10 WebWorks]]></category>
		<category><![CDATA[blackberry app world]]></category>
		<category><![CDATA[Built for BlackBerry]]></category>
		<category><![CDATA[Gold]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[webworks]]></category>
		<category><![CDATA[WebWorks Apps]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12974</guid>
		<description><![CDATA[Car Polish / JMR_Photography / CC BY 2.0 Last month we delivered the Gold release of the BlackBerry 10 WebWorks SDK to our development community. This was a huge milestone on the road to launch for BlackBerry 10, allowing our developers to confidently develop, test, and submit their WebWorks applications to BlackBerry World, and to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12974&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter size-full wp-image-12975" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/01/gold-paint.jpg?w=360&#038;h=539" width="360" height="539" /></p>
<p style="text-align:center;"><i><a href="http://www.flickr.com/photos/jmrosenfeld/3423241968" target="_new">Car Polish</a> / JMR_Photography / <a href="http://creativecommons.org/licenses/by/2.0/deed.en_CA" target="_new">CC BY 2.0</a></i></p>
<p>Last month we delivered the Gold release of the BlackBerry 10 WebWorks SDK to our development community. This was a huge milestone on the road to launch for BlackBerry 10, allowing our developers to confidently develop, test, and submit their WebWorks applications to BlackBerry World, and to take part in the <a href="http://developer.blackberry.com/builtforblackberry/commitment/" target="_new">Built for BlackBerry</a> program. I am sure all of you have already submitted your apps and are now relaxing by the pool. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Today we are launching a refresh to the WebWorks SDK that brings a number of fixes that, while not required for your application to run on BlackBerry 10, bring a few tweaks and stability improvements. There are two very specific updates addressing some underlying platform changes that COULD mean you will want to repackage an existing application. Let’s look at those first.</p>
<p><span id="more-12974"></span></p>
<p>The concept of Cards in BlackBerry 10 is what really enables the Peek and Flow experience. There are many built-in cards that developers are able to leverage to complete common tasks or integrate with system services, and WebWorks has provided built-in APIs for some of these system cards. One of them is the File picker (<strong>blackberry.invoke.card.invokeFilePicker</strong>). In the gold release, you could provide a list of directories in the FilePickerOptions object, and the standard UI would present a selection list of those folders. This ability was removed from the standard UI. The API has not changed, but we only now look at and use the first entry in the array to seed the UI. So as long as you were not relying on this multi-directory functionality, or if you don’t mind that only the first is considered, then you have no need to repackage your application.</p>
<p>Another update relates to how Contacts are created, or more specifically, what happens when you save a newly created contact using the <strong>blackberry.pim.contacts</strong> API. In the Gold SDK, when you save a contact that you create using <strong>blackberry.pim.contacts.create()</strong>, it will always create a new entry in the device address book. The underlying native implementation changed slightly and will now attempt to merge it with an existing relevant contact entry if it finds one. If you are fine with this behavior, or if it is desirable, then you need to do nothing if you have already packaged with the Gold SDK. Otherwise, in order to preserve the behavior of creating a new contact, you will need to repackage with this latest WebWorks SDK refresh.</p>
<p>That’s it for compatibility concerns &#8211; not so bad. There is one other thing though that you will notice with the latest Dev Alpha update. If you are using the <strong>blackberry.invoke.card.invokeEmailComposer</strong> API, clicking the Send button actually does nothing. This has already been fixed on the native platform and will work at launch. You have no need to repackage your app, either now or later, as the fix is entirely on the device, but just something to be aware of if you use this API and are testing it on the latest Dev Alpha build.</p>
<p>Finally, let’s turn to a couple of the polish items that we have in this refresh. As most of you are probably aware, BlackBerry Balance allows the user to segment their device into multiple perimeters to separate work and personal. The enterprise perimeter can be locked if a password is enabled, and when locked, apps are “locked” as well. In order for you as the developer to know what the current state is, we have introduced events that you can listen for that will tell you when the perimeter locks while your application is open. Check out <strong>blackberry.system.perimeterlocked/perimeterunlocked</strong>.</p>
<p>We have also expanded the Contacts API to include the Accounts information for that contact. Check out the new field <strong>blackberry.pim.contacts.contact.sourceAccounts</strong>.</p>
<p>We recently added the ChildBrowser concept to WebWorks that allows you to support target=”_blank” and window.open in your web content. We also allowed you to disable it. With this release, if you disable the ChildBrowser and use target=”_blank” or window.open to display non-whitelisted content, the result will be opened in the system browser, rather than the user being presented with an access denied dialog.</p>
<p>Context menus and custom contexts have also seen a couple of improvements. When you add your own menu item to the context menu, the callback that is invoked when the menu item is clicked will be passed the id of the content element that the user long-pressed on. You can also now override existing menu items through the <strong>blackberry.ui.contextmenu.additem</strong> method. Just provide the platform action id in the additem call and you can provide your own text, image, and functionality for things like Copy, paste, and so on.</p>
<p>As you can see, unless you use one or two specific items, applications you have already packaged and built are still good to go. But if you do use the contacts API and wish to always create new items as oppose to merge, or if you used the file picker in a specific mode, you will want to repackage and resubmit your applications to BlackBerry World. And be sure to get your applications approved for sale prior to January 21st, and take advantage of the <a href="http://developer.blackberry.com/builtforblackberry/commitment/" target="_new">Built for BlackBerry</a> program. <a href="http://developer.blackberry.com/html5/downloads/sdk" target="_new">Download the gold refresh of WebWorks</a> today to polish up your applications before launch of BlackBerry 10!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12974/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12974/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12974&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/01/blackberry-10-webworks-sdk-january-refresh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3b422c1a037b89d4ddf5bef834dbdeef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kjwallis</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/01/gold-paint.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>Solid Gold! Official release of the BlackBerry 10 WebWorks SDK</title>
		<link>http://devblog.blackberry.com/2012/12/blackberry-10-webworks-sdk-official-release/</link>
		<comments>http://devblog.blackberry.com/2012/12/blackberry-10-webworks-sdk-official-release/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 20:39:53 +0000</pubDate>
		<dc:creator>Ken W</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[BlackBerry 10 WebWorks]]></category>
		<category><![CDATA[blackberry app world]]></category>
		<category><![CDATA[Built for BlackBerry]]></category>
		<category><![CDATA[Gold]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[webworks]]></category>
		<category><![CDATA[WebWorks Apps]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12648</guid>
		<description><![CDATA[DSC04801 / mat79 / CC BY 2.0 Months of planning. More months of development. Re-planning. Long hours. Trips around the world. Meeting with you, our BlackBerry WebWorks development community. It all culminates with this: the gold release of the BlackBerry 10 WebWorks SDK. The team here could not be more stoked to deliver this final [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12648&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-12649" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/12/solid-gold.jpg?w=454&#038;h=348" width="454" height="348" /></p>
<p style="text-align:center;"><i><a href="http://www.flickr.com/photos/matze79/3540152571/" target="_new">DSC04801</a> / mat79 / <a href="http://creativecommons.org/licenses/by/2.0/deed.en_CA" target="_new">CC BY 2.0</a></i></p>
<p>Months of planning. More months of development. Re-planning. Long hours. Trips around the world. Meeting with you, our BlackBerry WebWorks development community. It all culminates with this: the gold release of the BlackBerry 10 WebWorks SDK. The team here could not be more stoked to deliver this final developer milestone on the road to the launch of BlackBerry 10. I apologize for the use of the word “stoked” in the preceding sentence, but I could not help myself. We are REALLY excited.</p>
<p>We recently delivered the <a href="http://devblog.blackberry.com/2012/11/blackberry-10-webworks-sdk-updated/" target="_new">final Beta of the BlackBerry WebWorks SDK</a> in conjunction with our recent BlackBerry Jam Asia conference. With that release we began guaranteeing compatibility of your applications, which was a major milestone. Hopefully you have already started submitting your apps to BlackBerry World for approval and preparing your application to the <a href="http://developer.blackberry.com/builtforblackberry/commitment/" target="_new">Built for BlackBerry</a> program.</p>
<p>Of course, the team has continued to work days &#8211; and many nights &#8211; to ensure this gold release is rock solid. Of course, we also snuck a few new things in.</p>
<p><span id="more-12648"></span></p>
<p>We now have a full house of cards that you can directly invoke from webworks. From the <strong>blackberry.invoke.card</strong> namespace, you can leverage the following new cards on top of the camera and file picker cards we already delivered: calendar picker, calendar composer, email composer, media player, contact picker, and ICS viewer card.</p>
<p>We have also now provided to you the means to leverage the built in invocation selection UI. If you choose to do your own invocation target queries and provide the user with the ability to select the target, you can use the API to present native look and feel selection UI.</p>
<p style="text-align:center;"><img class="aligncenter  wp-image-12663" alt="IMG_00000017" src="http://rimdevblog.files.wordpress.com/2012/12/img_00000017.png?w=461&#038;h=768" width="461" height="768" /></p>
<p>Wallpaper: an interior decoration technique that has happily fallen out of favour (opinions my own and do not reflect those of my employer). But smartphone users love setting the wallpaper of their device. Allow the user to set the wallpaper from your BlackBerry WebWorks app:</p>
<pre>blackberry.system.setWallpaper(pathToImage);</pre>
<p>You can now also specify custom contexts in your applications that can be used as a target type for invocation request, and to put custom actions into the context menu.</p>
<pre>&lt;div align="left" data-webworks-context="myContext"&gt;&gt;

   &lt;h4&gt;Local image link: with customContext&lt;/h4&gt;
   &lt;a href="http://www.blackberry.com"&gt;
      &lt;img src="../../img/secretdeviceimage.jpg" width="150" height="350"/&gt;
   &lt;/a&gt;

&lt;/div&gt;</pre>
<p>If the user triggers an invocation – say, as a long-press on any element within the div in the code example above &#8211; the system will pass the “myContext” custom context in the invocation request rather than an image context.</p>
<p>In addition, you will often want the ability to know when your context has been the target of a user-triggered invocation, and do something before the system completes the invocation. In the example above, you might want to add to the invocation request additional relevant information for the “super secret device”. All you need to do is assign a function to the <strong>blackberry.invoke.interrupter</strong> property. This function will be given the invocation request object, and you can return a modified version of the object that will actually be sent on in the invocation request. You may also just want to allow the user to confirm they wish to take this action.</p>
<pre>blackberry.invoke.interrupter = function (request) {          
	if(confirm("System would like to invoke: " + request + " would you like to continue?")) {
              return request;
        } else {
              alert("User canceled invocation");
        }
};</pre>
<p>One of the key user experience items for BlackBerry 10 is the concept of Active Frames. When your application is no longer in the foreground but still running, it gets a placeholder window that by default displays a snapshot of the application when the user put it into the background. With this API, you can customize what is displayed. You can set a different image, as well as specify custom text that will be overlaid onto the image. If you wish, you can also periodically update the cover, or reset it to the snapshot originally taken by the system. Check out the <a href="http://developer.blackberry.com/html5/apis/blackberry.ui.cover.html" target="_new">documentation</a> for more info.</p>
<pre>function onEnterCover() {
    blackberry.ui.cover.setContent( blackberry.ui.TYPE_IMAGE,
        {path: "/path/to/an/image/windowCover.png"} );
    blackberry.ui.cover.labels.push({label: "Label 1",
                                 size: 15,
                                 wrap: false});
    blackberry.ui.cover.setTransition(blackberry.ui.cover.TRANSITION_FADE);
    blackberry.ui.cover.updateCover();
}

blackberry.event.addEventListener("entercover", onEnterCover);</pre>
<p>Even though this is the gold release, we know there are a few things still missing that we are working hard to deliver. The nice thing about BlackBerry WebWorks is that we can expose existing native platform functionality outside of device OS and native SDK updates. Keep an eye on the <a href="http://developer.blackberry.com/html5/download/roadmap/" target="_new">flight boards</a> as we are actively planning maintenance releases to deliver a few more things.</p>
<p>But the gold release is your cue to finish your BlackBerry WebWorks application so that you can leverage the first-mover advantage. Get out in front of the wave and be one of the first applications in BlackBerry World. And be sure to get your applications approved for sale prior to January 21st, and take advantage of the <a href="http://developer.blackberry.com/builtforblackberry/commitment/" target="_new">Built for BlackBerry</a> program. <a href="http://developer.blackberry.com/html5/downloads/sdk" target="_new">Download the gold release</a> of BlackBerry WebWorks and put that final luster on your applications!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12648/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12648&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/12/blackberry-10-webworks-sdk-official-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3b422c1a037b89d4ddf5bef834dbdeef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kjwallis</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/12/solid-gold.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/12/img_00000017.png" medium="image">
			<media:title type="html">IMG_00000017</media:title>
		</media:content>
	</item>
		<item>
		<title>The HTML5 key to the doors of BlackBerry World (aka BlackBerry 10 WebWorks SDK Updated)</title>
		<link>http://devblog.blackberry.com/2012/11/blackberry-10-webworks-sdk-updated/</link>
		<comments>http://devblog.blackberry.com/2012/11/blackberry-10-webworks-sdk-updated/#comments</comments>
		<pubDate>Thu, 29 Nov 2012 05:21:03 +0000</pubDate>
		<dc:creator>Ken W</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[BlackBerry 10 WebWorks]]></category>
		<category><![CDATA[blackberry app world]]></category>
		<category><![CDATA[Built for BlackBerry]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[webworks]]></category>
		<category><![CDATA[WebWorks Apps]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12395</guid>
		<description><![CDATA[As we promised a few weeks ago, a BlackBerry® WebWorks™ SDK would be released soon that would have compatibility of applications moving forward. That day has arrived with the latest update to the BlackBerry 10 WebWorks SDK! Applications that are built with this BlackBerry WebWorks SDK will run on the latest delivered BlackBerry® 10 OS [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12395&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-12396" title="TITLE_IMAGE" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/11/html5-toast.jpg?w=400&#038;h=470" height="470" width="400" /></p>
<p><a href="http://devblog.blackberry.com/2012/10/blackberry-10-webworks-sdk-program/" target="_new">As we promised a few weeks ago</a>, a BlackBerry® WebWorks™ SDK would be released soon that would have compatibility of applications moving forward. That day has arrived with the latest update to the BlackBerry 10 WebWorks SDK! Applications that are built with this BlackBerry WebWorks SDK will run on the latest delivered BlackBerry® 10 OS beta version as well as future OS updates.</p>
<p>Note that this does not mean that APIs don’t have the potential to change in the future, and there will certainly be more APIs added &#8211; but an application binary compiled with this SDK will continue to run on future OSes. With this guarantee, you can now build your BlackBerry WebWorks applications and submit them to the BlackBerry App World™ storefront for approval. You can now also apply for the <a href="http://developer.blackberry.com/builtforblackberry/commitment/" target="_new">Built For BlackBerry</a> program before January 21st 2013 to take advantage of our <a href="https://developer.blackberry.com/builtforblackberry/commitment/" target="_new">10k Developer Commitment</a> to developers.</p>
<p>However, no BlackBerry WebWorks release would be complete without some new API additions. We have a ton of great stuff so let’s dive in.</p>
<p><span id="more-12395"></span></p>
<p>Perhaps our biggest addition is the ability to integrate with the Calendar on the device. Create, edit, delete – it’s all there. It also delivers access to all calendars available on the device while of course respecting the work/personal boundary provided by BlackBerry Balance™. Combine this with the Contacts API delivered in the previous release for some very compelling applications that integrate with the BlackBerry 10 integrated PIM story.</p>
<p>Everyone likes toast (well, they should), and BlackBerry 10 has brought a mobile flavor to this breakfast staple with the Toasts notification concept. Toasts are quick, non-blocking notifications to the user that your application has performed some action, which are displayed for a minimal amount of time and then disappear. You can also enhance your toast with butter a button that allows the user to take some action in relation to that toast (eg. a toast that notifies the user that an item was deleted, and provides an Undo action). Check out blackberry.ui.toast for more on this one.</p>
<pre>blackberry.ui.toast.show(“Pass the jam!”, options);</pre>
<p>Now, wouldn’t it be cool if you could have a sensor in your phone that would tell you that your toast is ready before it was burnt? Well, no, we can’t do that (yet). But with this release of BlackBerry WebWorks, you now have access to a whole host of new sensor APIs. Orientation, light, proximity, compass, space-time disturbances; okay, not space-time, but yes on the rest. Leverage these APIs to add some real value into your application based on the device environment.</p>
<pre>
// Create a callback to handle each sensor function compassCallback(sensor, data) {
     alert("Current azimuth: " + data.value); }

// Start listening to the compass sensor with a delay feedback of 1000  blackberry.sensors.setOptions("devicecompass", { delay : 1000 });

// Start the event listener for the sensors callback blackberry.event.addEventListener("devicecompass", compassCallback);
</pre>
<p>In the previous release of BlackBerry WebWorks, we provided a way to lock the orientation of your application by setting a flag in the config.xml. We have now provided a full JavaScript® API that allows you to lock/unlock your application dynamically based on your own logic. There are a few things to note with this change: To have a good JavaScript API signature, we are putting the orientation functionality right on the blackberry.app namespace, but this is out of line with the current config.xml approach of putting the parameter on the blackberry.app.orientation feature. So we have deprecated this, and now you should put orientation in config.xml on the blackberry.app feature. Also, if you do choose to set it in config.xml, that is a constant value that cannot be overwritten by the API &#8211; what you set in config.xml is what you get.</p>
<p>Speaking of config.xml, with this release we have all the pieces in place to allow for full localization of your application, including the display name of your application as well as the description. In the config.xml, you just need to put the localized text inside another element with the xml:lang attribute for the language. Furthermore, all of the built-in UI components are fully localized and reflect the current system language.</p>
<pre>
&lt;widget xmlns="http://www.w3.org/ns/widgets"&gt;
&lt;name&gt;
    The Ultimate Weather Widget
&lt;/name&gt;
&lt;name xml:lang="fr"&gt;
     insérez Françaises ici
&lt;/name&gt;
&lt;/widget&gt;
</pre>
<p>Let’s now take a look at some enhancements made to the underlying BlackBerry WebWorks platform. With this release, we have delivered a number of different optimizations to the runtime initialization process. Lots of highly technical, egghead type stuff. Long story short &#8211; your apps should load a whole bunch faster for your end users. Be sure to get the latest BlackBerry 10 OS build to see the full benefit.</p>
<p>Perhaps even more interesting is the addition of a child web view control. If you have a link in your content with target=”_blank” or use the window.open function, the content will now be loaded in a child web view that looks much like a card and won’t overwrite your current content. The user can then cancel the view to return to the originating page. When you use window.open, you will receive a window object for the child web view. One of the more obvious use cases here is a more seamless method of supporting OAuth for authentication into social networks like Facebook®, foursquare, Twitter®, and so on.</p>
<p>We have also added a new attribute to the element in config.xml that allows you to specify a single HTTP header key-value pair. This HTTP header will be added to every HTTP request sent from your application. This allows your backend system to key off of this header and perform any required customized processing for your app.</p>
<pre>&lt;widget rim:header=”header:Goooallll!”&gt;</pre>
<p>If that wasn’t enough on its own, we have also added a few new tooling features that should make your life a lot easier. First on deck is the ability to pass your application’s root folder into the bbwp tool to package your application. No more requirement to first zip your application content and risk feeling silly when you forget to update your zip file with your latest changes. The packager also supports ignoring folders and files within your application folder hierarchy; just create a “.bbwpignore” file in the root folder and list the folders and files you don’t want to be part of your application packager. The format of this file is essentially the same as the .gitignore file, with one or two very small differences.</p>
<p>Another potential time saver and headache reliever is a new facility that will allow you to forget about ever needing to update the version of the webworks.js file you reference in your app. In your application files, reference the webworks.js file like so:</p>
<pre>&lt;script src=”local:///chrome/webworks.js”&gt;</pre>
<p>The packager tool will include the latest webworks.js into your package and put it at the appropriate location to be loaded.</p>
<p>So there you have it. It is worth reiterating that with this release you can now submit your apps to BlackBerry App World and be assured they will run properly come launch of BlackBerry 10! So submit early so you can get your application approved, and then apply for the <a href="http://developer.blackberry.com/builtforblackberry/commitment/" target="_new">Built For BlackBerry</a> program before January 21st, 2013. No time to waste &#8211; <a href="http://developer.blackberry.com/html5/downloads/sdk" target="_new">grab the SDK today</a>!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12395/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12395&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/11/blackberry-10-webworks-sdk-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3b422c1a037b89d4ddf5bef834dbdeef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kjwallis</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/11/html5-toast.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>Update &#8211; Built for BlackBerry and apps built with the BlackBerry 10 WebWorks SDK</title>
		<link>http://devblog.blackberry.com/2012/10/blackberry-10-webworks-sdk-program/</link>
		<comments>http://devblog.blackberry.com/2012/10/blackberry-10-webworks-sdk-program/#comments</comments>
		<pubDate>Wed, 31 Oct 2012 18:06:34 +0000</pubDate>
		<dc:creator>Ken W</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[BlackBerry 10 WebWorks]]></category>
		<category><![CDATA[blackberry app world]]></category>
		<category><![CDATA[Built for BlackBerry]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[webworks]]></category>
		<category><![CDATA[WebWorks Apps]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=11843</guid>
		<description><![CDATA[One of the most exciting programs we have in place for mobile developers looking to embrace the opportunities provided by BlackBerry® 10 are the Built for BlackBerry program and the $10k commitment. With these programs, applications that meet a certain set of criteria that are submitted to the BlackBerry App World™ storefront, that are approved [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11843&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One of the most exciting programs we have in place for mobile developers looking to embrace the opportunities provided by BlackBerry® 10 are the <a href="http://developer.blackberry.com/builtforblackberry/commitment/" target="_new">Built for BlackBerry program and the $10k commitment</a>. With these programs, applications that meet a certain set of criteria that are submitted to the BlackBerry App World™ storefront, that are approved before January 21st, and that are accepted into the Built for BlackBerry program will be guaranteed to make at least $10,000 in the first year, or RIM® will make up the difference.</p>
<p>There has never been a better time to build for BlackBerry. If you are a web developer, building with the <a href="http://developer.blackberry.com/html5" target="_new">BlackBerry 10 WebWorks™ SDK</a> is your path to the Built for BlackBerry program and the $10k commitment.</p>
<p>Now, while BlackBerry App World is accepting application submissions (as of 10/10/2012) for BlackBerry 10, you will want to hold off on submitting your BlackBerry 10 WebWorks applications for just a short while. Using the current publically available BlackBerry 10 WebWorks SDK, you can build, package, and test your application against the current BlackBerry 10 OS builds available in simulators and the BlackBerry 10 Dev Alpha testing device. However, those same applications will not work in upcoming builds of the BlackBerry 10 OS, so your application would be rejected by the BlackBerry App World team.</p>
<p>Unfortunately, unavoidable changes were made in the underlying web runtime that broke compatibility. Have no fear; the development team is hard at work ensuring that the next release of the BlackBerry 10 WebWorks SDK &#8211; <a href="https://developer.blackberry.com/html5/download/roadmap/" target="_new">due in November</a> &#8211; will ensure compatibility moving forward. You will NOT have to change any of your code; this will simply be a repackaging exercise with the new SDK to create an application package that will run correctly on the latest BlackBerry 10 builds.</p>
<p>So hang tight for our next release of the BlackBerry WebWorks SDK &#8211; which in itself has some cool new features that you will love &#8211; and then get submitting to <a href="http://www.blackberry.com/appworld" target="_new">BlackBerry App World</a>!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/11843/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/11843/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11843&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/10/blackberry-10-webworks-sdk-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3b422c1a037b89d4ddf5bef834dbdeef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kjwallis</media:title>
		</media:content>
	</item>
	</channel>
</rss>
