I'm sorry if this is a duplicate question, but I'm confused with something on PHP/JS
I have the code from Chrome desktop notification example, and I am trying to work out how to send the user a notification when <?php sendChat(); ?>
is triggered. I have that setup with chat fine, I'm trying to send the offline user a desktop notification when someone chats with them and I have not a clue how to do this. I store their username and IP in my database if it's at all useful.
EDIT: Instead of this, would it be possible to instantly send wherever they are on the site?
Thanks, Phil