I read this https://developer.apple.com/documentation/backgroundtasks but I didn't get any specific result to be able to run a service. In this service, the data of the device connected to Bluetooth is taken and stored in the database.
- How to configure bluetooth?
- How to configure background service tasks?