XF 2.2 extending BasePushNotification


Does anyone know where I can execute a PHP function after a user receives an alert/notification, as our attempts at extending BasePushNotification::sendNotifications() have been unsuccessful :(

Any help would be greatly appreciated!
If you mean \XF\Service\PushNotification::sendNotifications, you should be able to extend it. You can likely extend \XF\Repository\Alert::insertAlert if you're looking to hook alerts more broadly.
Last edited:
Top Bottom