Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Problems with BBM SDK for BB10 WebWorks

Hey Guys,


I've been at this all morning and stripped down my code down to its bearest and still no luck. I've been trying to get the BBM SDK to work with the BB10 Alpha but no matter what I do I can't seem to get the pop up to ask the user to connect the app to BBM. I've gotten as far as getting the initial app permission (the one where it asks the user if it wants to allow access upon initial installation) but the actual pop up with the "connect" button never shows up. Here are my files that are being used:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<script type="text/javascript" src="js/webworks-"></script>
<script type="text/javascript">
document.addEventListener('webworksready', function(e) {
		// Create callback invoked when access changes
		blackberry.bbm.platform.onaccesschanged = function(accessible, status) {
			if (status == "allowed") {
			    // Access allowed
			    alert("Access allowed");
			} else if (status == "user") {
			    // Access blocked by user
			    alert("Access blocked by user");
			} else if (status == "rim") {
			    // Access blocked by RIM
			    alert("Access blocked by RIM");
		// Listen for other status...

		// Register with the platform
			uuid: "5610de50-1300-11e2-892e-0800200c9a66" // Randomly generated UUID

}, false);

function setStatus()
	// Set the user's status and status message
blackberry.bbm.platform.self.setStatus("busy", "Playing Tic-Tac-Toe!", function (accepted) {
    if(accepted) {
    } else {
       console.log("not cool.");
	<body onclick="" style="height: 100px; background-color">
		<button onclick="setStatus();">Click Me</button>



<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
        version="" id="com.ovetra.app2">
  <author href="http://www.ovetra.com/"
          rim:copyright="Copyright 2012 Ovetra">Joynal Rab</author>
    App for BlackBerry 10
  <icon src="images/icon-150.png"/>
  <content src="index.html" rim:allowInvokeParams="true"/>
  <feature id="blackberry.app.event"/>
  <feature id="blackberry.bbm.platform" />
  <feature id="blackberry.system"/>
  <feature id="blackberry.system.event"/>
  <feature id="blackberry.ui.dialog"/>
  <feature id="blackberry.app.orientation">
    <param name="mode" value="portrait" />
  <feature id="blackberry.app">
    <param name="backgroundColor" value="0xFFFF0000" />
  <access uri="http://www.ovetra.com" subdomains="true">
    <feature id="blackberry.app" required="true" version="1.0.0"/>
    <feature id="blackberry.invoke" required="true" version="1.0.0"/>
  <license href="http://www.ovetra.com/license"/>


I've also checked the network requests via the Web Inspector and the return value for the BBM Platform register call is {"code":1} where as calls for other simliar things like "version, author, etcc.." return {"code":1,"data":"....data"}


Not sure if that's any relavance. Any help from anyone is greatly appreciated -- so please if anyone chime in! Smiley Happy Thanks!

J. Rab (Blog) (Twitter)
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Problems with BBM SDK for BB10 WebWorks

probably not why your app is not working but you're missing a semi colon after your 


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!