Answer the question
In order to leave comments, you need to log in
How to make push notifications in Apple Safari?
Good evening everyone.
For the second day I have been stuck on one problem, namely Safari Push Notifications.
It turned out to make Google Cloud Messages notifications, but Safari does not react to these notifications in any way, Google Chrome works fine.
Everything was easy with Google. I insert Javascript on the page, which is responsible for requesting the rights to send push notifications. After confirmation by the user, a request is sent to the page with the browser ID, where I actually save its ID.
And then, using PHP, I send a request to Google about sending a notification to such and such a browser. And that's all. It takes all notification texts from manifest.json located at the root.
How to do the same but for Safari?
I just can't even understand how they work. And the documentation on their website is not very good (just like the forum, it's simply dead).
Please tell me. Thanks in advance.
PS: and if there are ready-made PHP / Javascript examples - generally super. I will be very, very grateful.
Answer the question
In order to leave comments, you need to log in
Safari is not so easy. You need a developer account, you need to get a certificate and then collect signed packages for users, which are already given to the user by a command through JS. Sending goes through APNS.
We at PushAll have implemented this and provide it to everyone for free
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question