Questions tagged [node-apn]

26 questions
5
votes
0 answers

MaxListenersExceededWarning - Loopback

I am getting the following error: (node:18591) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 wakeup listeners added. Use emitter.setMaxListeners() to increase limit. after a script for sending push notifications is…
Phoenix Dev
  • 457
  • 5
  • 19
4
votes
0 answers

Push notification for apple wallet card

I need to create a service for sending notifications for my own card in the applet vallet but I have problems. My card is registered and a push token arrives at my service, but when I try to send a notification for this token to the device. I get a…
3
votes
0 answers

node-apn : Provider should be created per notification request or one-time

I am new to node-apn. I have implemented it in nodejs application. Below is my code. var APN = require('apn') var apnProvider = new APN.Provider({ token: { key: "PATH_TO_FILE", keyId: "KEY", teamId: "TEAM" }, …
Ankur Akvaliya
  • 2,989
  • 4
  • 28
  • 53
2
votes
1 answer

iOS Push Notification Error: {reason: 'TopicDisallowed'}

[Please read carefully before answering.] I'm struggling to resolve notifications for more than a week and still, it's halfway resolved. I'm using the production certificate. It's working fine sometimes and suddenly starts throwing: { reason:…
2
votes
0 answers

How to connect VoIp to Nodejs Server using Flutter

am currently working on an application am using socket.io and node.js to carry out the real-time activity of the application, am using Agora.io for the voice and video call functionality. Package am Using agora_rtc_engine: ^4.0.7 agora_rtm:…
Zionnite
  • 291
  • 4
  • 13
2
votes
0 answers

Encoding an APNs token in JSON for node-apn (parse-server)

I've deployed a parse-server app in Heroku that I'd been developing locally using Docker. This app uses push notifications, and so needs access to some crypto data to play with APNs. Locally I mounted a volume with the token key file in it. On…
Darren Black
  • 1,030
  • 1
  • 9
  • 28
2
votes
0 answers

Node.js - Is there a way to set "apn" module for both production and development purposes?

I am using node-apn module to send push notifications to ios devices. Below you can see my config setting; apnConfig: { providerOptions: { token: { key: path.join(__dirname, 'keys', 'tokenkey.p8'), keyId:…
mhendek
  • 273
  • 2
  • 5
  • 16
2
votes
1 answer

iOS give notification a title using node-apn

Is there a way to set a bolded notification title (like most apps have) using node-apn? I've tried the following setters: notification.body = "Body"; notification.title = "Title"; notification.alert = "Alert"; but only the alert is included in the…
rharding
  • 551
  • 1
  • 3
  • 14
2
votes
2 answers

Warning : occur node apn emitter.setMaxListeners()

I send push notications using node apn. occur problem of emitter.setMaxListeners() about sending push on 10,000 users. but not occur problem about sending push on 1,000 users. how fix this problem. warning message : (node:17804)…
ATHeart
  • 65
  • 1
  • 8
2
votes
0 answers

InvalidProviderToken (403) response

node-apn receive InvalidProviderToken (403) response error from APNs. What need I change in configuration to send push message? Apple says: APNs supports only provider authentication tokens that are signed with the ES256 algorithm. Unsecured JWTs,…
János
  • 32,867
  • 38
  • 193
  • 353
2
votes
2 answers

APS : missing topic

I have an iOS app that requires Push capability and to that end have created necessary dev and Prod SSL certs and loaded them on the notification provider(node-apn); Notifications work fine in the APNs sandbox environment however, when sending…
Samuh
  • 36,316
  • 26
  • 109
  • 116
1
vote
1 answer

Node.js- Can not send Apple Push Notifications to development devices for debug purposes

I am maintaining a Node.js application and new to Node.js. This application sends push notifications to ios devices. For this purpose there is a config file that contains the apn settings ; apnConfig: { providerOptions: { …
mhendek
  • 273
  • 2
  • 5
  • 16
1
vote
1 answer

How to use aps.cer file for APN (Push notification) with Node.js?

I'm having issues with node.js sending push notifications, I think because I'm doing something wrong with my APN certificate thats generated in my apple developer account. Im getting this error from Node.js. VError: Failed to generate token:…
1
vote
1 answer

Could i use node module with react

Could i use node module with react. Could i use node-apn module directly in my react project to push notifications?
acoder
  • 249
  • 5
  • 14
1
vote
0 answers

Provider token per Bundle ID?

Is it possible to use one provider token for two different apps, belong to the same account / team? Server sends push notification to APNS but for second Bundle ID receives error: status: '400', response: { reason: 'TopicDisallowed' } } ] Any idea…
János
  • 32,867
  • 38
  • 193
  • 353
1
2