appfeel/node-pushnotifications

why my apn notification is seen as webPush ?

arnaudambro opened this issue · 1 comments

I don't understand, I have an apn token and the failure message of my notification tells me about webPush

I don't even have webPush setup...

does someone has an idea ?

[
  {
    "success": 0,
    "failure": 1,
    "message": [
      {
        "regId": [],
        "error": {},
        "errorMsg": "You must pass in a subscription with at least an endpoint."
      }
    ],
    "method": "webPush"
  }
]

my bad, i had
push.send([user.push_notification_tokens], data);
I needed
push.send(user.push_notification_tokens, data);

sorry !