With the Push Notification extension, you can send push notifications to your iOS, Android, or desktop devices. This allows you to trigger alerts/notifications for important events in your system. You can use this feature in both interactive reports and scheduled reports.
The following push notification services are supported (you need to download the respective app to your device from the app store):
The configuration is done via user/extension_init.php
. You need to configure which service you use by default (you can override it in a report using dbr.push.options
) and provide the respective API keys for each used service.
$mydbr_push = array( 'sender' => "pushover", // Default sender: pushover, pushbullet, prowl 'pushover_app_api_token' => "APP_TOKEN", 'pushbullet_access_token' => "ACCESS_TOKEN", 'pushsafer_private_key' => "PRIVATE_KEY" );
dbr.push
- Send a push messagedbr.push.sender
- Choose another sender than the one defined in $mydbr_push initdbr.push.option
- Set a service-specific optiondbr.push.notify_successful_push
- Disable the "Push message sent" messagedbr.push.log.proc
- Log the push message activity to databasedbr.push.debug
- Show status for each message sent
select 'dbr.push';
select 'dbr.push.sender', 'prowl' | 'pushsafer' | 'pushover' | 'pushbullet'
select 'dbr.push.option', 'option', 'value'
select 'dbr.push.notify_successful_push', 0
select 'dbr.push.log.proc', 'sp_log_stored_procedure'
select 'dbr.push.debug', 1
Options for Prowl: providerkey', 'priority', 'application
Options for Pushsafer (see Pushsafer dashboard)
Options for Pushover:
Options for Pushbullet:
Send a notification when the sender is defined
select 'dbr.push'; select 'John.Doe@gmail.com', 'Sales exceed $1M', 'Check the latest sales figures https://company.com/mydbr/report';
Define a sender and options
/* Send HTML mail */ select 'dbr.push'; select 'dbr.push.option', 'device', 'phone'; select 'dbr.push.option', 'sound', 'magic'; select 'dbr.push.log.proc', 'sp_mail_log'; select 'dbr.push.notify_successful_push', 0; select 'dbr.push.sender', 'popover'; select 'us2e8xm87wiiba4s6vb3ik68pmqpfr', 'Title', 'Message body';