Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 26 2015 12:54

    igorissen on master

    Update channel_endpoint.js The… Fix unregister method ~ setting… Merge pull request #27 from jax… and 3 more (compare)

  • Dec 26 2015 12:54

    igorissen on 2.2.0

    (compare)

  • Dec 26 2015 12:54

    igorissen on develop

    Update Merge branch 'release/2.2.0' in… (compare)

  • Dec 26 2015 12:29

    igorissen on develop

    Fix unregister method ~ setting… Merge pull request #28 from kyt… (compare)

  • Dec 26 2015 12:29
    igorissen closed #28
  • Dec 26 2015 12:29
    igorissen closed #26
  • Dec 26 2015 12:29

    igorissen on develop

    Update channel_endpoint.js The… Merge pull request #27 from jax… (compare)

  • Dec 26 2015 12:29
    igorissen closed #27
  • Nov 29 2015 09:56
    kytwb opened #28
  • Aug 05 2015 13:56
    jaxyeh opened #27
  • Jul 20 2015 04:41
    jw2856 opened #26
  • May 12 2015 07:49

    igorissen on 2.1.2

    (compare)

  • May 12 2015 07:49

    igorissen on master

    Merge branch 'hotfix/2.1.1' int… Fixed typo Merge pull request #25 from kvr… and 3 more (compare)

  • May 12 2015 07:49

    igorissen on develop

    Update package.json Update CHANGES_LOG (compare)

  • May 12 2015 07:44

    igorissen on develop

    Fixed typo Merge pull request #25 from kvr… (compare)

  • May 12 2015 07:44
    igorissen closed #25
  • May 11 2015 21:44
    kvrlim opened #25
  • May 06 2015 07:34
    igorissen commented #24
  • May 06 2015 07:03
    bandraszyk closed #24
  • May 06 2015 07:03
    bandraszyk commented #24
rahi044
@rahi044

Hi,
I am getting this error at APNs response:
err.message = "Expected status code 200 and received 401"
.
And here is my implementation:

var ZeroPush = require("nzero-push");
var cert = "./Certificates-Dev.p12";
var zeroPush = new ZeroPush.ZeroPush(cert);

var platform = "ios-mac";
var clientURI = "myUri";

var optionalParameters = {
sound: "",
alert: "Testing ZeroPush",
channel: clientURI
};
var requiredParameters = {
title: "Package: nzero-push",
body: "Notification body"
};

var sendIPush = function(){
zeroPush.broadcast(
platform,
requiredParameters,
optionalParameters,
function (err, response) {
if (err) return console.error(err);
console.log(response);
}
);
};
.
Please help me.

Ismael Gorissen
@igorissen
Hi
The certificates (dev or prod) need to be uploaded on ZeroPush web interface (https://zeropush.com)
This module only use the application token given by ZeroPush
var ZeroPush = require("nzero-push");
var zeroPush = new ZeroPush("your-auth-token-given-by-zeropush-service");

var platform = "ios-mac";
var clientURI = "myUri";

var optionalParameters = {
    sound: "",
    alert: "Testing ZeroPush",
    channel: clientURI
};
var requiredParameters = {
    title: "Package: nzero-push",
    body: "Notification body"
};

var sendIPush = function(){
    zeroPush.broadcast(
        platform,
        requiredParameters,
        optionalParameters,
        function (err, response) {
            if (err) return console.error(err);
            console.log(response);
        }
    );
};

sendIPush();
rahi044
@rahi044
That means I will have to generate the application token from ZeroPush? Thank you for your response :)
Ismael Gorissen
@igorissen
Yes, all push notifications is send by their servers. I just created a wrapper for their API. Glad it helps :)
rahi044
@rahi044
:)
Ismael Gorissen
@igorissen
Thanks to you @rahi044 I realised that there is an update of their API. I need to update the module
moykin
@moykin
Привет, ищу разработчика под один проект, напишите в skype moykin.e у кого есть время для рассмотрения реализации проекта
Shion
@ShionAt
Please support my attempt to change the world of the project, spread it, baptize it
https://github.com/ShionAt/Keys
https://twitter.com/ShionKeys
usama786284
@usama786284
Hlo sr I am new user of termux I need help to start termux
preeti13456
@preeti13456
This message was deleted
@usama what's help you need?