so much good work, amazing.
Yet no example of usage. There is nothing said about what to do after registration. Surely the should be easy to demo what to do next, i.e. to then send a simple notification message
Stefan Kientzler - 2020-05-05 13:47:19 - In reply to message 1 from Fm
Sections 2.2 and 2.3 describe exactly how the subscriptions can be saved on the server and how messages are sent. And the entire code is included in the package - you just have to create your own VAPID key to get started ...
Fm - 2020-08-03 13:20:39 - In reply to message 2 from Stefan Kientzler
I have returned to try & create a simple example to use this package. A good package but I still think it would be great if you supply a simple example e.g.
A php file to send "hello"
A php file to receive "hello".
The installation instruction are fine, I have registered & I then get :
PUSH Notifications not subscribed so far
Secure context: true
Running the example I get:
Push - Log:
The request to send a push message was received and accepted.
resonse code: 201 ()
Sadly There is nothing to show how to benefit from this package by the very last simple( to you I'm Sure) example of how to use to send xxxxx then how to receive yyyyyy.
Fm - 2020-08-04 10:54:32 - In reply to message 4 from Stefan Kientzler
Thank you again. I have no errors and your package works but what I meant there I see no clarity on how to use IN an application. I think you need a simple example NOT for installation or registration...etc. but for day to day use.
Usage in your app:
1) your app needs to run this js code at start: pnSubscribe();
2) every time you need to send a notification, your app needs to ?????????. May be run the whole file PNTestServer.php ???? with a new message?
I don't know.
Above points may be wrong, it's my explanation to what i feel would really make this package popular.
Steps for using this package once the installation bits work.
Stefan Kientzler - 2021-01-19 22:14:19 - In reply to message 6 from Finn Thorwarth
great that you worked your way through :-)
the subject of this package to implement push notifications is quite a complex area i know it realy requires a certain amount of understanding - both for the subject itself and for PHP.
If my time give the posibility, I'll try to write a tutorial about the integration of the package, which is not about how the package works internally, but really just about how it can be integrated into an own project ...
- step by step -
... but this is essentially a question of my own time available - all i publish here is 'volunteer' ....