Run the application in the background

Hello! I developed a system that receives slope data using arduino. For this I made an application from the app invertor.
My application prints the inclination data on the screen with bluetooth, it sends a notification when the values ​​reach a certain level and sends each slope value to the google sheet first and then pulls it to the application.
I want my application to run in the background after connecting to bluetooth.
That is, even when the application is closed, I want notification and data to be saved as long as it is connected to bluetooh.
I know app invertor doesn't run in the background, but is there any way to do this.

Have a look here
this extension by @Kumaraswamy

Pls search before posting... :slight_smile: