I am working on an iOS app that is connected to an ELD, which is a device that sends vehicle and gps data to a bluetooth connected phone. Basically my app works by connecting to it using bluetooth, and then parsing the packets that reach the phone every few seconds, and then creating logs from that data.
I currently have an issue with the app working in the background. I did enable background modes and the app does work in background most of the time, however the system sometimes kills it for some reason. Is there any way I can get the app to stay on as long as it’s connected to the device, or maybe a way for the app to wake up if it’s killed/suspended while in the background? Any ideas are appreciated? Thanks.