Replies: 2 comments 3 replies
-
You should be able to use Push API to target specific users from the server, but if for example you want the users to listen to the event always (e.g a messaging app), a better alternative in my opinion is to use WebSockets (remix has an example repo for adding it) and when an event is triggered on the server (e.g message sent from A to B), you just use the Notification API to alert the client. This is more versatile imo cause you can customise how the notification is presented to the user |
Beta Was this translation helpful? Give feedback.
-
@wh1337 Thanks to WWDC23, can confirm it does work on iOS! Adding this new guide here, feel free to go through all the docs and get familiar with remix-pwa modules |
Beta Was this translation helpful? Give feedback.
-
I was just curious, is there a way that we can target only certain users / devices for Push Notifications? I looked around but couldn't find any mention of it.
What I'm looking to do is only target user
a, b, and c
when something happens on the server, versus sending a push notification to everyone. I may be miss understanding how the Push Notifications API works inremix-pwa
but just wanted to double check.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions