First, create a Notification entity in your domain model. Add attributes such as Message (String), IsRead (Boolean, default false), and CreatedDate (DateTime). Then create an association from Notification to Administration.Account (or your custom User entity) to store the recipient of the notification.
Next, update the appointment booking microflow. After the Appointment is created and the Doctor is assigned, create a Notification object. Set the message to something like “New appointment booked”, set IsRead to false, set the created date, and associate the notification with the assigned Doctor’s user account. Commit the Notification. This ensures a notification is generated every time a patient books an appointment.
Then, add a bell icon to the Doctor’s navigation or header layout. Along with the icon, show an unread counter using a microflow that retrieves Notifications for the current user where IsRead = false and returns the count. This gives immediate visual feedback when a new appointment is booked.
Finally, create a Notifications page that lists all notifications for the logged-in doctor, sorted by newest first. On this page, allow the doctor to mark notifications as read (by setting IsRead = true). This completes the in-app notification flow and provides a clean, web-friendly solution that works consistently across all devices and browsers.
In addition to the other answers, you may want to take a look at the Mendix documentation on how to implement Push Notifications.
https://docs.mendix.com/refguide/mobile/using-mobile-capabilities/push-notifications/
This gives some examples of how to configure and use push notifications in a Mendix application.
Good luck!