How to activate scheduled push notifications:

[vc_row][vc_column][vc_column_text]You have to add an entry to your crontab.
The crontab is included in every server and allows you to execute some automatic tasks. You add an entry to the crontab and it executes the task when you have told it to do it. It can be a task to execute every 10am, every Wednesday, etc.

In our case the crontab entry you have to create will launch a file that will check the scheduled notifications and send them.
Two ways to create your new crontab entry:

FROM THE ADMIN PANEL OF YOUR HOSTING
Search for your crontab manager. Add a new entry with these settings:

Minute: */10
Hour: *
Day of Month: *
Month: *
Day of Week: *
Command (you will have to replace “www.mydomainname.com” by the address of your Ultra Apps Platform): wget “http://www.mydomainname.com/push/message/send”

USING SSH
Connect to your server using your SSH root access.
Enter: crontab -e
press enter
Press “i” to enable the insertion mode
Add this line at the end (you will have to replace “www.mydomainname.com” by the address of your Ultra Apps Platform): */10 * * * * wget “http://www.mydomainname.com/push/message/send”
press echap
Enter: :wq
press enter
enter: exit

Notes:

  • You have to change www.mydomainname.com with your own url for your Ultra Apps Platform install
  • In SSH the space between */10 and each * are tab space and not just normal space, and the one between wget and the url is a normal space
  • We have set the cron task to be executed every 10 minutes, but you can change it by the frequency of your choice (in */10 replace 10 by the number of your choice).

You are done![/vc_column_text][/vc_column][/vc_row]

Was this article helpful?

Related Articles

Leave A Comment?