Questions tagged [apnagent]

Features:

  • Chainable message builder
  • Persistent connection management
  • APN feedback service integration
  • Feature complete mock agents for local-only testing/development

For more visit:- apnagent

8 questions
5
votes
3 answers

Test for Apple Push Notification

I am using node.js (server framework) and mongoose.js (mongo based schema modeling) as the backend for an iOS app and I am using Mocha (test framwork) to make sure everything works. What I really want to know, and can find no documentation on, is…
clifgray
  • 4,313
  • 11
  • 67
  • 116
3
votes
1 answer

iOS Push Notifications with NodeJS - credentials

I have a requirement to implement the server side code for pushing notifications to an iOS app. I have followed this link. The problem is I always get 'Insufficient credentials' message. I am using the apnagent node module. Has anyone tried this…
user3080098
  • 355
  • 1
  • 5
  • 13
1
vote
1 answer

How to avoid using module in node.js?

Doing this tutorial, and I do not want to use device.js just to put one line in it: module.exports = "
János
  • 32,867
  • 38
  • 193
  • 353
1
vote
0 answers

Error - Insufficient credentials while making the connection for push notification

I am trying to deliver push notification in my ios app and i user node.js. So I am followint the tutorial from the link: https://blog.engineyard.com/2013/developing-ios-push-notifications-nodejs. In this tutorial they are keeping the passphrase for…
AAA
  • 1,957
  • 4
  • 23
  • 42
0
votes
2 answers

Purpose of piping in JavaScript?

Doing this apnagent tutorial and I do not understand what is the purpose of 'piping' of setting values in the second line. var apnagent = require('apnagent') , agent = module.exports = new apnagent.Agent(); // <--- WHY this here Especially I do…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
1 answer

can I use apnagent to send push notifications with only a PEM and passphrase?

Can you connect with apnagent only using a single .pem and passphrase? Or do I need a separate key .pem too? I'm a little ignorant of the different cert files and their uses so I am not sure if my mistake is trying to only use the .pem file and a…
pop42
  • 43
  • 8
0
votes
1 answer

Send iOS Push Notifications with Node.js on Openshift

I'm developing a website , that should send push notifications to iOS devices. I followed this tutorial to send notifications. On my localhost apnagent works fine, but when I git push it to my Openshift cloud I get the following errors in the…
dnnagy
  • 3,711
  • 4
  • 24
  • 34
0
votes
1 answer

How to use apnagent to send apns message to multiple device tokens?

I'm using apnagent to send apns messages. After followed the tutorial, I didn't see anything about dealing with multiple device tokens. I know we can do a loop easily but I want to know if there's a more efficient way to do this. for(var i = 0; i <…
Mars Zhu
  • 296
  • 2
  • 13