-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Chrome Version 64.0.3282.140 (Official Build) (64-bit) #9
Comments
Additional information : So it turns out that mdanter\ecc does not work with PHP 7.2 so I dropped back to php5.6. This cured the Cannot Use Object because of the special name. I'm able to enable push notifications but when I click on send notification nothing happens. No errors are thrown, but nothing is coming up on my browser either. :) |
I had similar issues, followed your fix to change direction and ended up in exactly the same situation where simply nothing happens after sending push notification request. No errors in console or cmd. (PHP 7.0) |
I just ended up using this walk through : https://manu.ninja/web-push-notifications |
So you simply ended up using node.js instead of PHP? I'm not sure I want to go that road. We run mostly on PHP and would prefer not running node just for those push notifications. |
No, we are rewriting the pieces in PHP. It still uses the web-push library which has a PHP version. it just gives us a working model so we can see how all the pieces fit together.I'd be happy to share when we get it switched over and working. |
Success - I got it to work !
#3) In router.php around line 25 change I'm running this using PHP 5.6.15 in Windows 10 |
Thanks guys for the feedback and investigation! :) By the way, please don't use this minimalistic and untested router in production. |
First..thank you for taking the time to make this available.
I have installed the project per your instructions and am having a few problems
After navigating to the home directory web-push-php-example and excuting php -S localhost 8000 router.php I am getting the following messages on the console
[Thu Feb 8 10:58:51 2018] PHP Warning: readfile(\C:\ProjectFiles\webpushphp\web-push-php-example\src\app.js): failed to open stream: No such file or directory in C:\ProjectFiles\webpushphp\web-push-php-example\router.php on line 31
If I prefix the reference to app.js to src/app.js in the index file, then Chrome complains about line 1 of app.js with
Uncaught SyntaxError: Unexpected token <
Additional information : I was able to get the index page to successfully load by changing the directory one level down to src and then : php -S localhost 8000
I was then able to navigate to localhost:8000/index.html and it loaded successfully.
It allowed me to subscribe. But when I tried to send a push notification the following php errors were thrown. (I'm using PHP 7.2) -
I guess I'm back to asking for any help you might give please ?
TIA - Jim
The text was updated successfully, but these errors were encountered: