GithubHelp home page GithubHelp logo

isabella232 / bb-push-sample-os5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from urbanairship/bb-push-sample-os5

0.0 0.0 0.0 552 KB

BlackBerry push notification sample application, OS 5.0 and up

License: Other

Java 100.00%

bb-push-sample-os5's Introduction

Urban Airship Push Client for BB OS 5+

Urban Airship Push Client for BB OS 5+ is a sample application designed to quickly get you up and running with Urban Airship Push Notifications, and to provide an example for how you might integrate push inside of your RIM Blackberry OS 5 or 6 application.

Requirements

BlackBerry JDE 5+

Notable Components

Keys.java

The class where all of your application settings are stored. These include:

PushConnector.java
The helper class that sets up listening to events and notifications in the background.
UrbanAirshipAPI.java

The API class that handles communication between UA and your app.

  • urbanAirshipRegisterPIN: registers your device PIN with Urban Airship for notifications.
  • urbanAirshipUnRegisterPIN: un-registers your device PIN with Urban Airship, marking that the PIN should not receive any other notifications until registered again.
  • urbanAirshipRegisterPINWithAlias: allows you to register your device PIN and associate an Alias with the device.
UrbanAirshipMain.java
The main application entry point. The application is designed to have an alternate entry point for starting background listening for notifications on device reset.
OKButton.java, TabletLayoutManager.java, UAHomeScreen.java, UrbanAirshipDialog.java, Util.java
Classes used for presenting UI for the sample app.
UrbanAirshipStore
Singleton class for providing persistent application storage, for keeping track of whether push services are enabled or disabled for the device.

Usage

  • Import the project into Eclipse or your favorite IDE.
  • Open the Keys.java file and enter your application's unique RIM / UA information.
  • Compile the app.
  • Using the application dashboard at go.urbanairship.com, send test messages to your application.

Integrating it into your application

  • Copy the Keys.java module to your app.
  • Copy the UrbanAirshipAPI.java module to your app.
  • Copy the Util.java module to your app.
  • Copy the PushConnector.java module to your app.
  • Follow the model of the code in UrbanAirshipMain for implementing GlobalEventListener.

bb-push-sample-os5's People

Contributors

robotadam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.