A NodeJS library for BlackBerry 10 push notifications
node-bb10 is a Node.JS library that is able to push notifications to a BlackBerry 10 device.
$ npm install node-bb10
A BlackBerry 10 device and the appropriate keys that you get from BlackBerry when registering your application.
var bb10 = ;// create a message and add recipientsvar message = ID 'Hello World!';message; // The PIN number of the recipientmessage; // Add multiple recipient at once// The default delivery method is 'notspecified'message;// Create the push initiatorvar initiator = applicationId password CPID;initiator;
If you are testing your application, BlackBerry works with an evaluation URL. If you want to run in evaluation/development mode you should add an extra parameter when creating the pushinitiator.
var initiator = applicationId password CPID true;
The MIT License
Copyright (c) 2013 Endare BVBA firstname.lastname@example.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.