mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-06-17 06:44:12 +00:00
VoIP call-invite pushes set no apns-expiration, so apns2 omits the header and APNs store-and-forwards the push — delivering it minutes late and firing a phantom "missed call" ring long after the call ended (and burning PushKit goodwill, inviting throttling). Cap the VoIP apns-expiration to the ring window (30s) so APNs delivers promptly or DISCARDS, never a stale invite. Alert pushes keep the default store-and-forward so a message notification still lands after the device reconnects. Also surface HTTP 200 on a successful dispatch instead of leaving HTTPStatus at 0 — a successful push was logging "http=0", which reads like an opaque failure and masked real false-success classes. Tests: VoIP push carries an expiration within the ring-window cap; alert push carries none. push package green.