When I connect, write, and notify using backgorund service, connection running well but when I closed the application connection between service and BLE device lost. Can I still connect to device using background service in Android?
Asked
Active
Viewed 177 times
0

Dariusz Seweryn
- 3,212
- 2
- 14
- 21
-
You should use a foreground service to maintain the connection even if the activity is shut down. – Emil Apr 22 '20 at 12:07
-
Oke that resolve for me, thank you very much. Can I remove connection when foreground service was closed? – Chandra Abdul Fattah Apr 24 '20 at 03:47