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
368 stars 119 forks source link

Need to add custome key/value to aps #174

Closed gsuzair closed 2 months ago

gsuzair commented 2 months ago

@edamov I need to add the 'attributes-type' and attributes' keys in aps, I added them using setCustomValue, but that doesnt work, I made changes in your Payload file, that worked but I cant push the changes made in vendor folder to my staging or live environment, is there any way I can add 'attributes-type' and attributes' keys to my aps payload for my liveactivity to start?

edamov commented 2 months ago

You can create Pull Request with your change, I will merge it and then it will be available in vendor folder. Or you can fork this repository and create your own package with your fix.

gsuzair commented 2 months ago

Fixed the issue using fork. Thanks.