2017 © Pedro Peláez
 

library js-push-notification

JS Push Notification SDK

image

jobstreet/js-push-notification

JS Push Notification SDK

  • Tuesday, June 30, 2015
  • by tekmin.ewe
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7,519 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

JSPushNotification

JobStreet.com Push Notification Service, (*1)

Installation

Using Composer:, (*2)

composer require jobstreet/js-push-notification 1.0.0

Usage

This is the minimal example that you'll need to have:, (*3)

require_once 'vendor/autoload.php';

$client = new JSPNClient(array(
    'applicationId' => 'YOUR_APPLICATION_ID',
    'isSandbox'     => true
));

$response = $client->publishMessage(12345, 'This is the notification message', array(
    'customParameter1' => 'parameter'
), array(
    'notificationOptions' => 'options'
));

if($response == 1) {
    echo 'Successfully publish message';
}
else {
    echo 'Failed to publish message. Error message ' . $response->error->message;
}

Configuration File

You may want to create a client config file in other place. Here is the example of defining the config file:, (*4)

define('JSPN_CONFIG_PATH', 'path/to/config.php');

require_once 'vendor/autoload.php';

$client = new JSPNClient();

config.php, (*5)


return array( 'applicationId' => 'YOUR_APPLICATION_ID', 'isSandbox' => true );

Documentation

More information and example are available at JSPushNotification SDK Wiki, (*6)

The Versions

30/06 2015

dev-master

9999999-dev https://github.com/tekmin/JSPushNotification

JS Push Notification SDK

  Sources   Download

The Requires

 

The Development Requires

by Avatar JS

sdk js push notification

30/06 2015

1.0.1

1.0.1.0 https://github.com/tekmin/JSPushNotification

JS Push Notification SDK

  Sources   Download

The Requires

 

The Development Requires

by Avatar JS

sdk js push notification

23/10 2014

1.0.0

1.0.0.0 https://github.com/tekmin/JSPushNotification

JS Push Notification SDK

  Sources   Download

The Requires

 

The Development Requires

by Avatar JS

sdk js push notification