»   BLACKBERRY »  BlackBerry 5-7 »  Native BlackBerry SDK

Native BlackBerry SDK

Native blackberry sdk has never been so easy! Our extensive guides for all platforms currently available on the market show how to integrate push notifications within several minutes and with several lines of code. You can choose between native programming tools and a diverse set of cross-platform solutions. We are working hard on extending the list of supported SDKs, plugins and modules, so we advise coming back once in a while to see what's new. If you believe that some great tools should be added here, please let us know, and we will do our best to get them up and running!

 

To integrate BulkPush Push Notifications SDK into your BlackBerry application you need to do simple following steps:

 

1. Inherit your application from PushUIApplication.

 

public class SampleUIApplication extends PushUIApplication

 

2. Pass the following parameters to the superclass constructor:

 

protected SampleUIApplication()
    {
        super(Keys.BLACKBERRY_PUSH_APPLICATION_ID, Keys.BLACKBERRY_PUSH_URL,
                Keys.BLACKBERRY_PUSH_PORT, Keys.BULK_PUSH_APPLICATION_ID,
                "widdle_icon.png", "uiicon.png", "uaiconAlert.png",
                "/cash.mp3");
    }
Keys.BLACKBERRY_PUSH_APPLICATION_ID 
// BlackBerry Application ID
Keys.BLACKBERRY_PUSH_URL 
//Blackberry Push Notification URL you have received after registration
Keys.BLACKBERRY_PUSH_PORT 
//Blackberry Push Notification Port you have received after registration
Keys.BULK_PUSH_APPLICATION_ID 
//BulkPush Application ID

“widdle_icon.png” – Indicator image (24×24 px). 
Appears as the push indicator when the push notification have been received
“uaicon.png” – Normal application icon 
(displays when the push notification have been read (57×57 px)
“uaiconAlert.png” – Application icon to display, 
when the push notification have been received (57×57 px)
“/cash.mp3″ – sound to play when the push notification have been received.

 

3. Implement the following function:

 

protected void handleNotification(final String notification)
    {
        Runnable r = new Runnable()
        {
            public void run()
            {
                BBPushDialog uad = new BBPushDialog(notification);
                try
                {
                    pushModalScreen(uad);
                } catch (IllegalStateException e)
                {
                    // pass through
                }
            }
        };
        invokeLater(r);
    }

That’s it! Easy, isn’t it?

SDK comes with the full source and a Sample Blackberry push notifications app. See SDK for more details. 

 

 

NOTE: Simulator (Ripple) is not able neither to subscribe nor receive Blackberry push notifications.

 

 

 

© 2015 BulkPush.com By Broadnet Technologies Ltd.