Maintenance Mode
We would like to inform our users that there may be temporary service disruptions while we perform system migrations or release new versions of the MeetingDoctors service.
To ensure the integrity of the data and prevent any discrepancies during these periods, our SDK will display a Maintenance screen. This screen will prevent any interactions with the service until the maintenance is complete.
How it works
The SDK will automatically manage any view that internally needs to display the maintenance screen. In case any integrator would like to display this screen as well it can be done by:
import MeetingDoctorsSDK
// Check if the service is in Maintenance Mode
await MeetingDoctors.isMaintenanceActive()
// Register a viewController con display the maintenance screen
await MaintainModeManager.shared.register(viewController: viewController)
// UnRegister a viewController con display the maintenance screen
await MaintainModeManager.shared.unregister(viewController: viewController)
// If integrator does not want to display the maintenance Screen.
// It can be disabled by setting up the showMaintain to false
MeetingDoctors.style?.flags.common.showMaintain = false
Notification Center
There are 2 different event that can be observed
// Will notify if the Service has been setup to maintenance
Notification.Name.MeetingDoctors.Maintain.Started
// Will notify maintenance has been completed
Notification.Name.MeetingDoctors.Maintain.Ended