edamov / pushok

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
MIT License
378 stars 121 forks source link

APNS Topic Support for Certificate Integrations #65

Closed hstrowd closed 5 years ago

hstrowd commented 5 years ago

Adds support for setting the APNS topic for certificate integrations. Without this, you will get the following error consistently when attempting to using certain certificates:

The apns-topic header of the request was not specified and was required. The apns-topic header is mandatory when the client is connected using a certificate that supports multiple topics.

Additional documentation for this can be found at https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.3%) to 65.109% when pulling 7cf61d0241402acd83c0ae90cc7fcff9531db1b5 on hstrowd:apns-topic-support-for-certificates into c0005d3a832b1805cef45ad0309b0855583bf864 on edamov:master.

edamov commented 5 years ago

@hstrowd Thank you!