iOS App Streaming data in the background
Is it possible to continuously stream Metawear accelerator data even the iOS app running on the background?
I saw some old discussion on 2016 and 2014, respectively:
which implies it is possible to do it.
Now it is 2020, is there any sample code to keep receiving data even entering the background mode?
Any suggestions will be appreciated!
Comments
You can but I don't think iOS guarantees that it will support backgrounds indefinitely. This would be EXTREMELY risky. Small tasks in the background are fine but I doubt long term tasks in the background are allowed by iOS/Apple.
Thank you for your quick reply!
Some additional info: https://apple.stackexchange.com/questions/252239/do-ios-apps-run-in-the-background
https://www.raywenderlich.com/5817-background-modes-tutorial-getting-started
https://developer.apple.com/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/about_the_background_execution_sequence