Welcome!

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

Reply
Developer
Posts: 63
Registered: ‎12-16-2011
My Device: Red 10
My Carrier: Mobifone

BBM Connected for Smartphone caught an error while loading "you must define UUID..."

Hi all

 

I'm building the sample for BBM Connected sdk. The build and sign process was succeeded. I can load App into my device, which using BIS.

 

When starting up, it pop an error "You must define your own UUID. See bbmUtil.Register() in code.js". I tried to put some of the BBID into that field bot it does not work. Any one face a same problem?

 

Appriciate your help!

Highlighted
BlackBerry Development Advisor
Posts: 762
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: BBM Connected for Smartphone caught an error while loading "you must define UUID..."

[ Edited ]

Hello,  for the UUID see the following from the API docs @ https://developer.blackberry.com/html5/apis/blackberry.bbm.platform.html

 

"The UUID must be a randomly generated 36-character UUID. Any UUID generator can be used."

 

Here's a code example, it shows registering with the BBM service

 

// Create callback invoked when access changes
blackberry.bbm.platform.onaccesschanged = function(accessible, status) {
    if (status == "allowed") {
        // Access allowed
    } else if (status == "user") {
        // Access blocked by user
    } else if (status == "rim") {
        // Access blocked by RIM
    }
    // Listen for other status...
};

// Register with the platform
blackberry.bbm.platform.register({
    uuid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // Randomly generated UUID MUST BE 36 CHARACTERS LONG!
});