wingleung / safari-push-serverside

Server side endpoints for Safari push notifications
5 stars 0 forks source link

Extracting push notification package failed #1

Open AnandAyan opened 7 years ago

AnandAyan commented 7 years ago

Hi , the zip package was created successfully when i open in Safari, i get this error in my server log ["Extracting push notification package failed"] . I verified my zip file and files and folder are same as one listed in apple documentation . icon.iconset/ icon_16x16.png icon_16x16@2x.png icon_32x32.png icon_32x32@2x.png icon_128x128.png icon_128x128@2x.png manifest.json signature website.json

ghost commented 4 years ago

@AnandAyan Any luck with this issue?

vaajnur commented 4 years ago

your pushPackage.zip not valid. Reissue certificates and regenerate zip.

ghost commented 4 years ago

Turns out that Safari will give that error even when it doesn't receive the push notification package at all and that was my problem. I incorrectly assumed that Safari was making the requests using the signed-in user's session so it was receiving and unauthorised response.

vaajnur commented 4 years ago

Ok. There all errors https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html