The Rebedta app is an application for controlling/monitoring IoT devices (beds/sweepers). After a user logs in, the app uses a foreground service of the dataSync type to maintain a continuous MQTT connection with a server/broker, receiving telemetry messages and real-time device status, even if the user switches to another app or is not directly in front of the app screen.
While the service is running, the app displays an ongoing notification as defined by Android to let the user know that data is being synced/received over the network, and they can return to the app from the notification.
The FOREGROUND_SERVICE_DATA_SYNC permission is used only for receiving and processing device data over the network (MQTT), not for backing up or restoring the entire device. If the user closes the notification or logs out, the app will stop the foreground service by design.