I created a Bluetooth oriented app. I got everything working as expected. However, if I open another app, and leave the phone focused on that app for say 20 minutes. My Kodular BT app stops working, which was in the background. The BT device shows it is disconnected. I re-open my app, it refreshes, and I’m asked to repair my bluetooth device again.
What could be causing this? It is such a bummer after all this long work. I have enabled battery optimizations for the app and checks to make sure all my clock components are “timer always fires.”
Thank you for that extension suggestion. I have disabled anything of the sort from affecting the phone. I believe it is being killed due to memory management software. Yet, the phone has 1GB free. Still kills it every 5 minutes or so.
For kicks, I wrote an app to open my kodular app every 5 minutes Works, but not nearly a preferable solution. Currently, I’m either rooting the phone to have more control with resource management. Trying to find professional help there. If that fails, I guess I’ll have to recode the app.