Send Notification to site users/members

How to send notification to my website users.
When I will send notification that time user will receive it.

1 Like

If you use the Wix Blog or the Wix Forum then these will be applied automatically.

Otherwise for push notifications you will have to use a third party through the use of Wix Fetch.
See the fetch api docs here: https://www.wix.com/code/reference/wix-fetch.html

For triggering the fetch request, you could choose one of many options, for example:

  1. add an “afterInsert” hook to your collection - https://www.wix.com/code/reference/wix-data.Hooks.html#afterInsert
  2. register to the dataset’s afterSave event - https://www.wix.com/code/reference/wix-dataset.html#onAfterSave
  3. implementing email notifications using SendGrid - https://support.wix.com/en/article/how-to-send-an-email-on-form-submission

For email notifications, then you can simply use Wix Automations, or use the SendGrid tutorial above, or use triggered emails to contacts or members.
https://support.wix.com/en/article/sending-automated-response-emails-to-contacts
https://support.wix.com/en/article/corvid-tutorial-sending-a-triggered-email-to-contacts
https://support.wix.com/en/article/corvid-tutorial-sending-a-triggered-email-to-members

HI I’m looking to do the same thing for my website, it’s based on business profiles and people submitting reviews to that particular profile, how can i alert the profile owner of a new review a customer as made on the profile page

thanks

If the above tutorial will work for me can you be a bit more detailed on what to do please as im new to corvid/coding, are there any free third party push notification providers?

thanks again

I see no real way to send a notification to specified user(s) so that it appears in the notification section (bell in the upper right corner) outside of Blog/Forum context (where it takes place automatically, without any programmable control/interaction). Push notifications (in terms of mobile phones) and emails are not the notifications we’re talking about here! I don’t think that the WIX notifications section (again, bell in the upper right corner of your website) implies either push notifications or emails - it’s just an entity within WIX context.

Of course, it’s possible to create your own Follow and Notification (bell) buttons, Notification box, collections, JavaScript logic to wire those up, … But then you also need to think what to do with the regular Follow/Notification buttons and how to avoid confusion for the site users. I.e. Follow/Notification buttons will still be valid for Forum and Blog, so you shouldn’t remove them (even if you could). At the same time, you need to explain to your users that they need to use SPECIAL Follow/Notification buttons for non-Forum/Blog section(s) where you’re applying your own custom logic.

To summarize, there’s no API that allows developers to use built-in Follow/Notification infrastructure the way it works automatically for Forum/Blog. I hope WIX support engineers will prove I’m wrong…

Is possible to have live notifications, as for Oct 2020 you can achieve it with the real-time-backend.api
https://www.wix.com/corvid/reference/wix-realtime-backend

It’s a very useful API, you can customize to your own requirements

1 Like