Questions tagged [safari-push-notifications]

Discussion around implementing Safari Push Notifications.

Not to be confused with APNS, or the apple-push-notifications tag, which discuss push notifications to iOS device. This tag is for questions with regards to Safari push notifications, as described here:

https://developer.apple.com/notifications/safari-push-notifications/

31 questions
2
votes
1 answer

Signature verification of push package failed - Safari Push

I am trying to implement Safari Push Notification into my server (For my website) using PHP. I am following the tutorial below by…
1
vote
0 answers

Removing notification from Mac notification center

Mac OS Big Sur 11.2.3 Developing Web Push notifications per here. Just got to the point where the popup appears and I can confirm permission. The notification gets added to my notification center, but I can't delete it to try again for…
Doug
  • 665
  • 2
  • 8
  • 22
1
vote
0 answers

Mac OSX, Safari Push Notification: Generate Push Package from Tokens instead of Certificates

As per apple, we can now take advantage of a simpler method of authentication by using tokens instead of certificates when sending push notifications. Here As per documentation, for generating Push Package we need a Signature file which is PKCS #7…
1
vote
2 answers

Empty log for Safari Push Notifications webservice

I've implemented Safari Push Notifications both server-side and client-side. On the client, after asking for permissions, the callback function is called with permission "denied". On the server-side, the logs show that a request for the push package…
0
votes
0 answers

Push notification on iOS - Notification.requestPermission not working

Currently I am working on a project implement push notifications dashboard to send notifications to users, be that in desktop or mobile. Currently it is working for all desktop-based browsers as well as android. On iOS though, the pop up to allow…
Daniel Rocha
  • 41
  • 1
  • 4
0
votes
0 answers

TypeError: checkRemotePermission is not a function. (In 'checkRemotePermission(permissionData)', 'checkRemotePermission' is undefined)

I am new to safari web push notification, I have created pushpackage for safari and, I have placed javascript code to get user notification confirmation but Getting issue i.e TypeError: checkRemotePermission is not a function. (In…
Anil Kumar
  • 41
  • 4
0
votes
1 answer

How to configuring Httpd to handle Safari Agent Requests

Good evening everyone! I am implementing Safari Push Notifications. I found a great tutorial on Medium.com There is one part of the proccess where I stuck. I do not know how to configure httpd to handle safari agent requests. The tutorial shows the…
0
votes
0 answers

RESOLVED NginX location / SafariPushNotification agent 404 on request

I am in need of some NginX expertise. I am configuring a Safari Push Notifications web service with NginX. When the front end requests permission, the Safari agent fails to connect and fetch the push package with a 404: NginX access…
0
votes
1 answer

Safari Push Notifications authenticationToken

I need make Safari Push Notifications. I use guides: https://medium.com/anantha-krishnan-k-g/safari-push-notifications-ec171bdf6ead http://samuli.hakoniemi.net/how-to-implement-safari-push-notifications-on-your-website/ and…
Tsyklop
  • 369
  • 1
  • 9
  • 24
0
votes
2 answers

How to deliver a pushPackage for Safari Push Notifications?

I'm developing a website and would like to implement Safari Push Notification support to it. I've gone through this tutorial by Apple. They wrote once there is a hit at webServiceURL/version/pushPackages/websitePushID we have to deliver our…
0
votes
1 answer

PHP: Failed to open stream: No such file or directory

I'm working on implementing Safari Push Notification service for my website. I've been following the tutorial made by Apple which can be found here. And we have to create a package to serve push notifications and Apple provides a companion php file…
0
votes
0 answers

How to sign manifest.json for safari push notifications using golang?

What would be the correct way to sign a manifest.json file to be used for a safari push notification package? func servePushPackage() func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) { …
Jay
  • 19,649
  • 38
  • 121
  • 184
0
votes
2 answers

Safari push notification (OS X Mavericks and Safari 7)

I have created the push package with valid certificate and hosted on server with valid SSL certificate but problem is that javascript always shows the denied message even before prompting to user. I am using the java script code from apple tutorial…
0
votes
1 answer

Make use of Safari Website Certificate for OS X Safari Notifications

I can't figure out how to properly convert my website certificate to a .pem file that I can attach to my attempt to connect to gateway.push.apple.com without getting connection refused when I try to send out notifications.
Tony Friz
  • 883
  • 1
  • 10
  • 27
0
votes
3 answers

safari push notification - push package issue

when I try to download my push package it returns the push package with all the contents such as iconsets, mainfest.json, website.json, signature but while connecting it returns "Missing file in push package". Where is my mistake?