New in BlackBerry 10 WebWorks SDK 1.0.3.8 Beta (Nov 29, 2012)
- New in this release:
- webworks.js bundled with app: The BlackBerry WebWorks Packager now automatically bundles the latest webworks.js file as chrome/webworks.js. You must include in your web pages
- Packager accepts folder location and .zip file: The BlackBerry WebWorks Packager now allows you to specify either your application's .zip file or the application's folder location as input. You can also use a .bbwpignore file to exclude certain files and patterns from the packaging process. For more information
- rim:header attribute supported for BlackBerry 10: The element supports a new attribute, rim:header. The rim:header attribute is an optional attribute that allows you to specify HTTP header text that is added to every HTTP request made by the application. This allows you to differentiate the request from those requests coming from the BlackBerry Browser, enabling you to respond to the request differently based on the source application
- You must set the appropriate permissions to use webkitGetUserMedia(): To use the HTML5 webkitGetUserMedia() method to access the device's camera and microphone, you must set the use_camera and record_audio permissions in your config.xml file.
- Support for child browser windows: There is now support for opening a browser window from within a BlackBerry WebWorks application. This feature can be used to request authentication on behalf of a third party, which is often displayed in a new tab or window. Using window.open() or specifying an anchor target of _blank causes a secondary browser window to open on top of the WebWorks application. This feature allows WebWorks applications to support the common use case in which embedded content from a third-party site or service launches a new window to request credentials. Support for this feature is enabled by default. A new parameter () is available to allow you to disable support for child browser windows.
- Support for toasts: WebWorks applications now support toasts. Toasts are simple messages that popup for a specified period of time and then automatically disappear without any interaction from the user.
- Additional support for sensors: The WebWorks SDK now includes the Sensors API. This API provides programmatic access to all device sensors that can not be accessed using HTML 5 APIs. You can retrieve sensor data from the accelerometer, gyroscope, light sensor, magnetometer, and rotation sensor, among others. You can use these readings to make your apps responsive to a wide range of user and environmental input.
- Changes to the orientation feature: There has been a change in the syntax that is used to set the orientation in the config.xml file.
- Additional programmatic support for orientation: The WebWorks SDK now provides support for controlling the orientation of your WebWorks application programmatically. Previously, orientation was specified exclusively through the config.xml file. You can now control orientation programmatically as well, using blackberry.app.lockOrientation() and blackberry.app.unlockOrientation().
- Localization support for config.xml elements: The and elements in the config.xml file now support the xml:lang attribute. This attribute allows you to specify the language associated with these elements, allowing you to provide localized versions of these elements.
- Support for system permissions: WebWorks applications now support system permissions. System permissions are identified using a new system attribute with the element in your config.xml file. Setting system="true" allows you to indicate that the permission you are defining is a system permission. Currently, the only permission that must be designated as system permission is _sys_use_consumer_push.
- Fixed issues:
- BlackBerry WebWorks Framework:
- You could not close or minimize an application after the application receives a push notification.
- Feature permissions specified on the config.xml file did not apply to embedded content.
- BBM Social Platform:
- If a user denied an app permission to connect to BBM when the app first launched, or changed the permissions in the global settings for the app, the app crashed.
- When a user launched an app and the app attempted to register with the BBM Social Platform, after the user clicked Continue in the BBM Setup dialog, BBM did not launch.