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
Trusted Contributor
zahirw
Posts: 134
Registered: ‎04-15-2012
My Device: Bold 9900
My Carrier: Vodafone

Updating BBM Personal/Status msg

How can I configure my app to allow users to update their bbm status when they perform a certain task on the app.
Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Updating BBM Personal/Status msg

You will want to use the blackberry.bbm.platform.self.setStatus() method.  More information here: https://developer.blackberry.com/html5/apis/blackberry.bbm.platform.self.html

 

Note: it is up to the user to enable a permission setting to allow your app to change their status.

 

Here is a code snippet that shows how to do this:

 

<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>

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Trusted Contributor
zahirw
Posts: 134
Registered: ‎04-15-2012
My Device: Bold 9900
My Carrier: Vodafone

Re: Updating BBM Personal/Status msg

Thanks a lot, will try it out!
Please use plain text.