AccelerateNetworks / fusionpbx-webtexting

GNU Affero General Public License v3.0
0 stars 0 forks source link

Push Notifications don't notify #25

Closed dunkeltron closed 9 months ago

dunkeltron commented 10 months ago

Seems like I need to do more work understanding how notifications make it from notifications.php to the user

uncheckederror commented 10 months ago

I've been doing some research into getting push notifications to work in Chrome. I believe you should read this doc:

https://web.dev/articles/push-notifications-overview

Looking at the composer.lock file in this project it would appear that the web-push-php library is being used to send push events to the client.

The first step in the notifications doc from Google linked above is to prompt the user to allow or disallow Web Texting to send them notifications. So we need to trigger the browser to execute this prompt action, which our code doesn't appear to be doing right now. Then we can register our service worker with the browser and push events to it, and then the user, from our php code.

dunkeltron commented 9 months ago

Turns out push notifications do notify it's just that my test bench had notifications turned off on three separate levels

uncheckederror commented 9 months ago

Can we close this issue then?

dunkeltron commented 9 months ago

yeah i thought i hit close with comment