Connect your app to the BBM social platform

Connecting to the BBM social platform starts with registering your app. The BBM social platform APIs are not available for use until the app is registered. Once your app is successfully registered with the BBM social platform and has access to the APIs, it listens for bbmsp events, determines the event category and type, retrieves any applicable payload data, and processes them accordingly.

Applications that are installed in the Work perimeter cannot access the BBM social platform APIs. To connect to BBM, your app must be installed in the Personal perimeter.

Successful registration is indicated when the value of RegistrationState is equal to Allowed and isAccessAllowed() returns true.

The process overview looks like this:

  1. Create an event queue by using BlackBerry Platform Services (BPS).
  2. Request that events flow into the event queue.
  3. Call requestRegisterApplication().
  4. Wait for successful registration.
  5. Listen for bbmsp events.
  6. Verify the event category and type, and retrieve any associated data.
  7. Process the event.

You can download the sample registration app from GitHub.

Last modified: 2013-12-24

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus