Skip to content

ibm-bluemix-push-notifications/HelloPush-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs helloPush Sample Application for IBM Cloud Push Notifications Service

This helloPush sample contains an NodeJS project that you can use to learn more about the IBM Cloud Push Notification Service.

Contents

Prerequisites

Before you start, make sure you have the following:

  • A IBM Cloud account.
  • Register devices for the push notifications.

Create an instance of IBM Cloud Push Notifications Service

  • Create an instance of IBM Cloud Push Notifications Service and configure it .

setup the app

  1. Run the npm install to install the packages.
  2. Add the service credentials in the following code,
// initialize with push service appSecret or apikey
var myPushNotifications = new PushNotifications(PushNotifications.Region.US_SOUTH, "your-bluemix-app-guid", "your-push-service-appSecret");

var myPushNotifications = new PushNotificationsApiKey(PushNotifications.Region.US_SOUTH, "your-bluemix-app-guid", "your-bluemix-push-apikey");

Run the sample app

To run the sample , use node start from terminal.

Samples and videos

=======================

Copyright 2019 IBM Corp.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Nodejs helloPush Sample Application for IBM Cloud Push Notifications Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published