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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 614
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Updating BBM Profile Status in WebWorks BBOS 7 - Code?

Do any of you have the code for setting an icon and BBM profile status text in Webworks for BBOS?

 

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Updating BBM Profile Status in WebWorks BBOS 7 - Code?

Hi there, are these what you're looking for?

 

Display picture:

https://developer.blackberry.com/html5/apis/blackberry.bbm.platform.self.html#.setDisplayPicture

 

Status text:

https://developer.blackberry.com/html5/apis/blackberry.bbm.platform.self.html#.setStatus

 

I'm not sure exactly which icon you were referring to.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Developer
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T

Re: Updating BBM Profile Status in WebWorks BBOS 7 - Code?

 
<script type="text/javascript">
// Set the user's status and status message
blackberry.bbm.platform.self.setStatus("busy", "Playing Tic-Tac-Toe!", function (accepted) {
    if(accepted) {
        // User allowed the change
    } else {
        // User denied the change
    }
});
</script>

Is this the only code I need to add to my .html file? To work with my BB10 app? Other than this line in the xml?

 

 

 

<feature id="blackberry.bbm.platform" />

 

 

Thank you

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Updating BBM Profile Status in WebWorks BBOS 7 - Code?

Hi there,

 

Initially you'll need to ensure that you've actually registered with BBM on your application's launch. 

https://developer.blackberry.com/html5/apis/blackberry.bbm.platform.html#.register

 

Beyond that, the code you noted should work as-is. Are you seeing issues?


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Highlighted
Developer
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T

Re: Updating BBM Profile Status in WebWorks BBOS 7 - Code?

No problems just researching. Before i mess up my app. 

 

Thank you. 

Developer
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T

Re: Updating BBM Profile Status in WebWorks BBOS 7 - Code?