You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all congratulations for the great job, your library is simple and effective and I think it's one of the best around written in PHP.
I see that it lacks a simple parameter that will allow it to send even Safari notifications out of the box. Unfortunately Apple's documentation is not updated and many people think it works only with the binary protocol but I have tried your library with a simple fix to make it work.
As you can see here you must prepare a payload with this format:
{
--
"aps": {
"alert": {
"title": "Flight A998 Now Boarding",
"body": "Boarding has begun for Flight A998.",
"action": "View"
},
"url-args": ["boarding", "A998"]
}
}
But pushok doesn't allow to set the url-args parameter that is at the same level of the aps field.
I can send you a pull request with the new parameter and I'll be happy if you can accept it in your project.
The text was updated successfully, but these errors were encountered:
marcorocca
changed the title
Additional payload parameters to support Safari notifications
Additional payload parameter to support Safari notifications
Oct 19, 2020
First of all congratulations for the great job, your library is simple and effective and I think it's one of the best around written in PHP.
I see that it lacks a simple parameter that will allow it to send even Safari notifications out of the box. Unfortunately Apple's documentation is not updated and many people think it works only with the binary protocol but I have tried your library with a simple fix to make it work.
As you can see here you must prepare a payload with this format:
But pushok doesn't allow to set the
url-args
parameter that is at the same level of theaps
field.I can send you a pull request with the new parameter and I'll be happy if you can accept it in your project.
The text was updated successfully, but these errors were encountered: