Monday, November 9, 2026
HomeiOS Developmentios - Flutter bluetooth background service

ios – Flutter bluetooth background service

[ad_1]

I’ve a Flutter app that makes use of Bluetooth (flutter_blue plugin) to speak with health tools. The issue I’m experiencing is when throughout the exercise person for no matter cause decides to modify the app (change music, received a telephone name, and so forth.). On Android, every little thing works positive however on iOS flutter app instantly stops dealing with information coming from Bluetooth. The second person goes again to the app every little thing is again to regular. I feel the issue is when the app lifecycle adjustments and the app goes to background that flutter’s fundamental thread (fundamental exercise) is paused, thus no processing occurs, however the second it resumes every little thing is again to regular.

If my app is within the background Bluetooth machine by no means will get disconnected (as a result of on iOS so long as there’s a Bluetooth connection, that app will maintain larger precedence and iOS will not kill it). My query is there a method to proceed processing if the principle thread is paused? I imagine a method of doing it’s dart isolates, however it could take me a substantial period of time to construct isolates since they do not share something with the principle thread. I’m seeking to see is there any temp workaround to make use of background providers and processing when the person switches the app?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments