This sample code demonstrates how to inject the Blackberry Object into a website which is not an application. It gives you back control in JS where you can then access APIs and use them as desired. The use case could be to wrap a website into an application, skinning it to look better and work with platform features on BB10.
The sample code for this application is Open Source under the Apache 2.0 License.
Applies To
Author(s)
To contribute code to this repository you must be signed up as an official contributor.
- Inside the ext folder is the custom extension. You need to copy it into your Framework subdirectory of your WebWorks Packager. Please re-name it something meaningful such as injector.
- Modify the config.xml file to ensure you are pulling in the proper extension named inside your manifest.json file.
- Move the contents of the app folder inside your application.
- BlackBerry HTML5 WebWorks - Downloads, Getting Started guides, samples, code signing keys.
- BlackBerry WebWorks Development Guides
- BlackBerry WebWorks Community Forums
- BlackBerry Open Source WebWorks Contributions Forums
Please see the README of the BB10-WebWorks-Samples repository for instructions on how to add new Samples or make modifications to existing Samples.
If you find a bug in a Sample, or have an enhancement request, simply file an Issue for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an Issue.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.