Alternatively you can extend this 10 seconds to up to 180 seconds, using https://developer.apple.com/reference/uikit/uiapplication/1623031-beginbackgroundtaskwithexpiratio but that adds more complexity, and I don’t believe you need that much time.
iOS: stay connected to an external BLE device as much as possible
Stefan Walkner
2874

重要

Like what you read? Give Wade Lu a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.