Push Notifications

5.0
Breton Rafael [redcrested.net] 1 year ago

Using the OneSignal API, this component allows users to decide if they want to receive notifications on their computer or mobile device for interactions on their posts, friendship requests, or received messages after some time away from the site. The notifications are displayed in the default language of the user's device, with translations required.

The administrator can use the OneSignal Dashboard to send messages to all users who have accepted to receive notifications. The administrator can also set the following:

  • The number of times a page is viewed/loaded on the screen before the notification prompt appears;
  • The amount of time spent on a single page before the prompt appears;
  • Whether the system will send notifications for received messages and the amount of time away;
  • The customization of the appearance of the OneSignal bell.

To create the authorization ID in OneSignal, after create an account on that site, go to the https://dashboard.onesignal.com/apps, click on new app/website, then fill name and select web and click on Next. To finish the process, follow this instructions.

Note that using this component may incur additional costs. Please see the pricing table at https://onesignal.com/pricing for more information.

Notification on desktop

Notification on mobile

How to buy

I am selling this component for US$39.00 through the Buy me a coffee website. To purchase, visit https://www.buymeacoffee.com/redcrested/e/117780

Limitations

The component was tested in free version of OSSN 6.4 to 7.2, in the GoBlue theme. Maybe some adjustments are required in older versions and/or other themes.

Version

  • 1.7

    • When clicking on the notification on the device, the page opens directly on the item. At the same time, the related notification in the notification panel of the OSSN site is marked as read.
    • At the messages page, the notification bell is hidden so that it does not overlap with the buttons on the bottom of the page.
  • 1.6

    • Fixed an issue with messages at likes in comments
    • Notification messages are shown in the user language if defined. Otherwise, it will be considered the default site language.

Contributing

Send email to [email protected].

License

Go to Red Crested License to read the last version of our terms.

Comments
us MAURICE TAYLOR Replied 1 week ago

Can this be done without using an outside system?

German Dominik L Replied 1 week ago

yeah, that is right, because this component is not supporting mobile SDK at the moment, so the OneSignal in your App is not connecting to your website, Rafael has to extend the component to support more than just web push

Zuang Marlon Murahwa Replied 2 weeks ago

Hi Dominik thank you so much for your response. We have one signal implemented in our app and it is working fine. The part I don't understand is when this component is set up does it send notifications automatically or it only allows you to send manually via the one signal dashboard? So far we are not getting any notifications.

German Dominik L Replied 2 weeks ago

Hello Marlon,

this component implements the OneSignal SDK for webpush, so you need to use the PWA to get the push notifications.

Maybe Rafael is implementing the mobile SDK too, so it is working on mobile apps -> also your mobile app needs to have OneSignal implemented too

Zuang Marlon Murahwa Replied 2 weeks ago

Hi Rafael thanks for the great plugin. We are trying to use your plugin to send notifications to mobile app users via one signal. We have your plugin installed on our network and one signal is working well in the app but nothing else seems to be happening. Our expectation was that if something happens on the web a notification would be sent out on OneSignal and therefore received by mobile app users. Is this wrong?

Breton Rafael [redcrested.net] Replied 6 months ago

I released version 1.7 with these changes:

  • When clicking on the notification on the device, the page opens directly on the item. At the same time, the related notification at the notification panel of the OSSN site is marked as read.
  • At the messages page, the notification bell is hidden so that it does not overlap with the buttons on the bottom of the page.

Also, the component has been tested on OSSN 7.2, working fine.

German Dominik L Replied 7 months ago

The issue is resolved, push notifications work, only the bell was not completely visible, but I could adjust this in settings

Indonesian Arsalan Shah Replied 7 months ago

@Dominik there is nothing special in 7.2 i am curious why its not working.

Maybe bootstrap update. Did you tried on goblue theme? and your theme looks custom are you sure you are using theme from 7.2 package? or your old theme?

German Dominik L Replied 7 months ago

Not completely visible in OSSN 7.2

enter image description here

Breton Rafael [redcrested.net] Replied 1 year ago

Very short answer, yes and no.

Yes, because each event that generates a notification produces a notification trigger. I also added notifications when someone requests friendship and when the requested user confirms the friendship. Finally, when the user is away from the social network for an amount of time and receives a message in the chat, a notification is sent to that user stating that a message was received. This feature can be disabled and the time is set by the site administrator.

Now the short answer no. The user has to accept receiving this notification and it stays tied to the device he is using. So, if the user accepts the notifications on the computer, his mobile will not receive any notifications. And if the user does not accept receiving notifications, he will not be disturbed.

Component

Developer: Rafael
License select license
Type: Uncategorized
Requires Ossn Version : 6.1
Latest Version:
Last Updated
Repository Url View Repository

Versions