By Matt Stephens on Saturday, 14 April 2018
Replies 9
Likes 0
Views 796
Votes 0
I've been trying to set up the push notifications with OneSignal and I think I'm close but it's just not working right. The bell icon shows up, but after subscribing to notifications I still don't seem to get any. Other users report that it tells them to subscribe but don't know how.

Will support please help me with this? Thank you so much
I also wonder why I'm not getting email notifications, but I want that to be disabled by default if possible. Each user should have the option to turn on email notifications
·
Saturday, 14 April 2018 06:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Based on what i checked on your site, it seems like you did setup correctly, perhaps you can share with us what situation it doesn't notify to each other?

For example : when the userA comment to userB stream, it doesn't notify to the userB through push notification.

As long as each other received the system notification (http://take.ms/wT6em), it should able to receive this notification pop up as what i attached the first screenshot.


I also wonder why I'm not getting email notifications, but I want that to be disabled by default if possible. Each user should have the option to turn on email notifications

Based on what i checked from your backend > Easysocial > email activities, it seems like all the email still under pending, may i know do you have setup your cronjob in your server yet? Because it needed this setup in order to send out those email notification to your site user , you can refer on this documentation how to setup this -> https://stackideas.com/docs/easysocial/administrators/cronjobs

Yes, you can disabled those 'default email' for all the existing alert rules from backend > Easysocial > alerts
·
Saturday, 14 April 2018 16:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Alex! Yes, the push notifications are working now. Not sure why they weren't at first, maybe just needed to clear browser cache.

For email, you're probably right, I don't recall setting up the cron job in Joomla. I'll look into that now
·
Wednesday, 18 April 2018 04:36
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome, keep us update if you need further assistance on this.
·
Wednesday, 18 April 2018 10:05
·
0 Likes
·
0 Votes
·
0 Comments
·
The instructions you provided refer to setting up a cron job with your hosting provider (which is very useful if you use one), but are there any instructions in the situation that you host the web server yourself? It took me a while, but I finally got it working. For anyone else looking to do this, here's what I did.

I changed the $host value in /components/mod_easysocial/cron.php to my URL. The instructions on EasySocial site say not to use http:// or https:// and ONLY put the domain name, but the file itself contradicts that in its description. It works for me with this:
$host = https://mydomain.com;

Then edit crontab to get and run that file. Since my website files are all owned by www-data user, I had to edit that user's crontab like this:
sudo crontab -e -u www-data

Added this line to the end of the crontab file (replace mydomain.com with your domain name):
*/1 * * * * wget -O /dev/null 2>&1 "https://mydomain.com/index.php?option=com_easysocial&cron=1";

The *'s and/or numbers at the beginning specify how often to run the command. This one runs once every minute.

Every instance varies with self-hosted web servers, so this won't work for everyone, but hopefully it can lead some in the right direction.
·
Thursday, 19 April 2018 02:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Matt.
·
Thursday, 19 April 2018 15:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post