appfeel / node-pushnotifications

Push notifications for GCM, APNS, MPNS, AMZ (automatic detection from device token)
MIT License
544 stars 125 forks source link

Failing APNS for Independent WatchOS6 app #117

Closed RichAppz closed 5 years ago

RichAppz commented 5 years ago

Hey guys, I am not sure if this is of fault of the library, Apple, or something I have done wrong.

So basically the new Independent WatchOS6 apps can now have a push token of their own, don't need the phone. I am creating a token and passing to server no issue.

The issue I am getting is EVERY time I try and send the push I get Error: DeviceTokenNotForTopic I have tried with p8 - and key/cert pem - Both are passing the same errors.

Is there something missing from your end?

vitalyster commented 5 years ago

When using token-based authentication, specify the bundle ID of the app. When using certificate-based authentication, the topic is usually your app's bundle ID. However, the topic may also correspond to the bundle ID of an Apple Watch complication or a background VoIP service. Look in the (1.2.840.113635.100.6.3.6) extension of your certificate to identify the possible topics for your push notifications

RichAppz commented 5 years ago

I am currently using the bundle ID of the app. Not using a complication or VoIP just standard independent WatchOS6 app.

alex-friedl commented 5 years ago

Should be fixed with #119