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

critical alert support #103

Closed ExeErik closed 4 years ago

ExeErik commented 4 years ago

I would like to create critical alerts (see https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2990112). I need to include the "critical" and "volume" flag in the sound dictionary. As I see it is only possible to set a sound name.

example request: { "aps":{ "alert":"Test Critical", "sound":{ "critical":1, "name":"Default", "volume":1.0 } } }

Is it possible to add this flags?