Preventing auto-lock while recording audio

I have a simple app that is capturing audio via the WKInterfaceController audio recording method. Everything works well, except for the fact that I can never capture a recording longer than about 20 sec because the Apple Watch screen locks. I have set the max duration option to 5 min, but this doesn't seem to have any effect on this aspect of things.


Has anyone managed to either get the watch to stay awake in this case, or is there a wy to get the audio recording to continue in the background, even after screen lock?


Thanks!

Answered by nbonatsakis in 53077022

For anyone interested, I've determined that if you launch the app via tapping on a Glance, this time limit is present, however if you launch the app from the home screen, it stays running until you actively sleep the watch.

Accepted Answer

For anyone interested, I've determined that if you launch the app via tapping on a Glance, this time limit is present, however if you launch the app from the home screen, it stays running until you actively sleep the watch.

Preventing auto-lock while recording audio
 
 
Q