Push Notification

We provide 2 providers to send notification messages : FCM and OneSignal, FCM configuration is required and has been explained in the previous step by replacing google-services.json with yours, then OneSignal setup is optional.

Firebase Cloud Messaging (FCM)

Server Key

Firebase provides Server API Key to identify your firebase app. To obtain your Server API Key, go to firebase console, select the project and go to settings, select Cloud Messaging tab and copy your Server key.

FCM Notification Topic

  • Notification topic name is determined by you, the notification topic must be written in lowercase without space (use underscore), e.g : your_single_radio_topic

OneSignal

Required For Setup

Keys & IDs Setup

  • Login to your OneSignal Account and select your app

  • Select SETTINGS > Keys & IDs to get your OneSignal APP ID and REST API KEY

  • Login to your Admin Panel, navigate to Settings menu and put your OneSignal APP ID and OneSignal REST API KEY.

Send Push Notification

We provide php script module to send push notification, you need to have a web hosting and domain to store script files.

Login to your Hosting account and upload notification.zip file in your hosting via File Manager or FTP Server to your folder destination on your hosting, then extract it.

Before you can send notification message, you need to put all required Keys & IDs for push notification in the config.php

$fcm_server_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';

$fcm_topic = 'your_single_radio_topic';

$onesignal_app_id = 'xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx';
    
$onesignal_rest_api_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';

Last updated