Enable Push Notifications for Android:

[vc_row][vc_column][vc_column_text]First, if it’s not already done, you have to create an API Key on the Google Developer Console. Click here to see how.

Then, on your Ultra Platform install, go to “Settings”->”Push”, and enter your API key in the “GCM Key” field.

Return to the Google Developer Console, and on the left menu click on “Overview” and copy the “Project Number”.

Return on your Ultra Platform install and in “Settings”->”Push”, and paste this project number in the “Sender ID” field.

Please note that these steps must be done before downloading your app sources and publishing your app in the store!

If you want to activate the push notifications to be sent on a particular date:

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

In our case the crontab entry you have to create will launch a file that will check the subscriptions and update 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: *
  • (And in the Command field): wget http://YOUR-Ultra Platform/push/message/send >/dev/null 2>&1

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 “YOUR-Ultra Platform” by the url address of your Ultra Platform): */10 * * * * wget “http://YOUR-Ultra Platform/push/message/send >/dev/null 2>&1”
press the “Esc” key
enter: :wq
press enter
enter: exit

Don’t forget to change “YOUR-Ultra Platform” by the address of your Ultra platform.

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

Was this article helpful?

Related Articles

Leave A Comment?