This topic is locked

Notifications API / Saas

1/12/2026 20:37:19
PHPRunner General questions
lefty author

I have been working on a SaaS project and decided to try and use Notifications API to see if it would work when you have a centralized seperate database for all users
and multi-tenannts for project databases. When testing it appears it will not work due to the class code for permissions in classes / notifications file. Just wondering if anyone got this to work . I am using this on 10.91.2.

ChatGPT 1/12/2026

Using PHPRunner with a centralized database for multi-tenant applications can be a bit tricky, especially when it comes to features like the Notifications API. The core issue you're facing seems to revolve around permissions and the correct handling of notifications across different tenants in your application.

Here are some steps and suggestions that may help you troubleshoot and potentially resolve the issue:

  1. Check Permissions Configuration: Ensure that the permissions for notifications are correctly set up for each tenant. You might need to customize the permissions handling in the classes/notifications.php file to accommodate multi-tenant logic.


  2. Review the Notifications API Documentation: Make sure you've reviewed the PHPRunner documentation regarding the Notifications API. Look for any notes or examples that might pertain to multi-tenant setups.


  3. Custom Code Implementation: If the built-in functionality does not meet your needs due to the centralized database structure, consider implementing custom logic to handle notifications. You can create a custom function that checks which tenant should receive which notifications based on the user or tenant context.


  4. Database Structure: Ensure that your database schema supports multi-tenancy effectively. For example, you may want to have a tenant_id column in your notifications table to filter notifications based on the tenant.


  5. Testing: Create test cases for different scenarios where notifications should be sent to users from different tenants. This can help identify if the problem lies in the logic or the integration of the Notifications API.


  6. PHPRunner Support Forum: If you haven't already, consider posting your issue on the PHPRunner support forum or community. Other users who have experience with similar setups might have encountered the same issue and can provide insights or solutions.


  7. Update PHPRunner: Since you're using version 10.91.2, check if there are any updates or patches available. Sometimes, issues are resolved in newer versions.


  8. Error Logging: If you encounter any errors, enable error logging in PHPRunner to capture detailed error messages that can provide clues about what's going wrong.



By following these steps, you should be able to diagnose the issue further and determine a viable solution for implementing the Notifications API in your multi-tenant application. If you have specific error messages or behavior you're observing, feel free to share, and I can provide more tailored advice.