I used Web Push PHP library
https://github.com/Minishlink/web-push-php-example to send push notifications, but I found a problem:
Referrer Policy: strict-origin-when-cross-origin
For your information, I used
- PHP –Version
PHP 7.2.34 (cgi-fcgi) (built: Nov 4 2020 16:02:13) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
- Link to this sample: https://i-confident.com/admin/web-push-php-example/src/index.html
Anyone can help me? Thanks in advance!
2
Answers
use
First you need install php extension in my case:
Also you need the checkout the branch:
Then you should update your dependencies via composer:
And then it’s should work I checked.