The screen of the watchOS app automatically turns off and pauses operation.

I developed a watchOS app to capture gyro data, save it in real-time as a CSV file, and send it to an iOS app. However, when I start writing with the watch on, the screen dims, and it stops working. It only resumes operation when I tap the screen again.

Is there a way to let it run in the background and transmit files in real-time, even when the screen is off?

The screen of the watchOS app automatically turns off and pauses operation.
 
 
Q