The server code is currently running in the foreground area so stops when LeafSpy is not displayed.happyfunball wrote:Hi,
I have LeafSpy pro working, with both dropbox and the server REST option enabled. When the app is running, my server (PHP page) is getting the info in the url and I can see the SOC and SOH etc. Great stuff.
Unfortunately, when the app is running in the background on my phone, it stops working. I have location services enabled (selected Always) and have the GPS option and 'always keep gps active' enabled in the LeafSpy settings,.
I'm not sure what else I need to do to enable LeafSPy to work and post to my server page in the background? Or do I need to manually switch to the app first every time I start the car?
I will be looking at moving that code into the background area that communicates with the Leaf.