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

Custom Notification Id #77

Closed lstalder closed 4 years ago

lstalder commented 4 years ago

Is there a way to set a custom notification id (eg database record id) which i can set and refer to if i get the apns response?

edamov commented 4 years ago

@lstalder You can add apns-id header for each request. You can see more about it here - Table 8-2APNs request headers

lstalder commented 4 years ago

wow - that was quick! Thanks a lot.