EDIT: I found the solution for implementing Safari Push Notifications and blogged about the process at: http://samuli.hakoniemi.net/how-to-implement-safari-push-notifications-on-your-website/
... When clicking "subscribe", it should enable push notifications for Safari 7.x on OSX 10.9.x.
Push notifications works on http://www.macrumors.com/ where they've implemented it. However, on my own test website, I always get "denied" as permission result without Safari even prompting it at all.
So: I don't get any prompt for allowing permission for push notifications, just a callback with permissionData.denied
.
I found this question from SO with similar problem: Safari push notifications return denied without asking
But unfortunately it didn't offer me any advice.
When asking for permission, the browser contacts the endpoint that downloads the pushpackage of your site. The endpoint be restFUL and must run over "https". A self-signed SSL certificate does not work. Also, the push package must be valid for the user to be prompted. My advice is to get the logging endpoint working correctly so that you can at least know what is going on and where it's failing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With