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

Java Development

Reply
Developer
rihan007
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

How to leave a message using BBM SDK

Hi guys, 

 

I would like to use the bbm sdk to do the following.

 

1. Send a message using conn.sendData() 

2. Close the app ,  and let the receiver look at the message when he wants. Now it seems I can send a message to ask the user to join and then when he has joined, send the data. I would like to just send a message and let the receiver look at the message when he wants. Is it possible?

Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30

Re: How to leave a message using BBM SDK

The BBMPlatformChannel.sendInvitation method allows you to specify a message to be delivered.

 

You could also close the GUI portion of your app, but have the BBM aspect running the background to send the message you wanted once the channel is joined. This wouldn't cover you in the case of someone losing network coverage or turning the phone off, however.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
rihan007
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: How to leave a message using BBM SDK

hi paul,

 

thanks for your reply,

 

I figured out how to solve the issue. For reference , i am using the following code

 

  MessagingService messagingService = getBBMPlatformContext()
                .getMessagingService();
        messagingService.shareContent("description",
                new BBMPlatformData(content), "Contact Picker", null);