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

Allow alert to be a string, and enable alert to have a subtitle #46

Closed srjlewis closed 5 years ago

srjlewis commented 5 years ago

I have update the payload to allow alert to be a string or array has shown in the docs.

https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363

And also allow alert to have a subtitle with the right key.