pusher / push-notifications-web

Beams Browser notifications
MIT License
39 stars 20 forks source link

Safari beta issue: Extracting push notification package failed #102

Closed natoehv closed 2 years ago

natoehv commented 2 years ago

Hi! we are implementing the beta for safari, but we can't show the prompt message to the user. we were checking the mac bugs and we realized that we have some problems in the pushPackage, I'm going to paste them below:

error   16:41:06.714945-0300    SafariNotificationAgent nw_endpoint_handler_set_adaptive_read_handler [C23.1 IPv4#a0c30513:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed
error   16:41:06.715058-0300    SafariNotificationAgent nw_endpoint_handler_set_adaptive_write_handler [C23.1 IPv4#a0c30513:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed
error   16:41:07.160152-0300    SafariNotificationAgent Error performing push notification handshake: Extracting push notification package failed
error   16:41:07.434066-0300    SafariNotificationAgent nw_endpoint_handler_set_adaptive_read_handler [C24.1 IPv4#a0c30513:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed
error   16:41:07.434111-0300    SafariNotificationAgent nw_endpoint_handler_set_adaptive_write_handler [C24.1 IPv4#a0c30513:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed

the generated url is something like https://[instance-id].pushnotifications.pusher.com/safari_api/v1/instances/[instance-id]

if I post directly to https://[instance-id].pushnotifications.pusher.com/safari_api/v1/instances/[instance-id]/v2/pushPackages/[web-push-id] I got a 500 error:

{
    "error": "Something went wrong",
    "description": "Could not get push package"
}

do you know how this error could be generated?

saravanan-28 commented 2 years ago

Hi, We are also facing the same issue with beams safari. Any update on this ?

Error performing push notification handshake: Extracting push notification package failed

@natoehv Have you got this issue resolved ?

natoehv commented 2 years ago

hi @saravanan-28, I've opened a ticket in the pusher web support, and the pusher engineers are working on it. so it is still in progress 😔

benjamin-tang-pusher commented 2 years ago

This was fixed on the Pusher side (it was certificate related), so I will close this issue.