Skip to content

Notifications Plugin

Daniel Neto edited this page Jan 6, 2020 · 12 revisions

To enable notifications you are required to acquire the Notification plugin here

Notification by email

make sure your email is properly configured, if you are not sure how to do it, follow this

Browser notification and mobile app notification

Web Push Platforms and Native App Platforms

OneSignal

We choose the OneSignal because it gives you for a free account: Unlimited Web & Mobile Push Notifications and 30K web Subscribers

They are also very clear on their requirements and how to configure it.

To enable this service on the Notification plugin you will need to provide us the following:

  • oneSignalEnabled

Check the option above

  • oneSignalAPPID:
  • oneSignalRESTAPIKEY:

For the items above access the site https://app.onesignal.com, and follow the instructions here https://documentation.onesignal.com/docs/accounts-and-keys

  • oneSignalFIREBASE_SENDER_ID:

This is required for Android notifications, access the Firebase site https://firebase.google.com/, and then follow the instructions here https://documentation.onesignal.com/docs/generate-a-google-server-api-key

After that, all other work must be done on the OneSignal site

For iOS notifications, I follow this tutorial, but Option A: Try out our Automatic Provisioning Tool does NOT work for me. I had to use Option B: Create Certificate Request Manually

Important, do not forget to upload the OneSiganl SDK to your site root if you select full https

You will need to download the OneSignal SDK files and upload them to the top-level root of your site directory.

Webhooks

We offer a webhook to notify new videos and we will send the following fields

Column Value
id Primary key of the video
title Video Title
clean_title Clean Video Title (URL)
description Video Description
status Video Status [a, i, u]
created Video Date of creation
users_id User Id
categories_id Category Id
filename Video File name used to host
duration Video duration
type [video, audio, embed]
imagesJson A JSON with the images for the video
url The video Streamer URL
urlEmbed The Video Streamer URL for embed

Clone this wiki locally