Hello
I would like to share some observations with you all, is is based on https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#post-628468
A problem that we all have in 8+ and backgound services is trying to keep them alive. I have been testing a bg service on a Huawei Y6 running android 8. In the above example that Erel did he update the notification bar every 10 seconds and the app will never be killed.
In my service I updated the notification every minute, but the device stopped giving me time, it became rather intermittent.
when I changed the update to every 5 seconds it would appear to work correctly. I am currently doing more tests, the phone will vibrate every minute to let me know it is still running.
Just thought I would share this. On this device you need to explicitly all the app to run in the background in the settings. That being said it would appear to ignore this under certain circumstances.
Regards
John.
I would like to share some observations with you all, is is based on https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#post-628468
A problem that we all have in 8+ and backgound services is trying to keep them alive. I have been testing a bg service on a Huawei Y6 running android 8. In the above example that Erel did he update the notification bar every 10 seconds and the app will never be killed.
In my service I updated the notification every minute, but the device stopped giving me time, it became rather intermittent.
when I changed the update to every 5 seconds it would appear to work correctly. I am currently doing more tests, the phone will vibrate every minute to let me know it is still running.
Just thought I would share this. On this device you need to explicitly all the app to run in the background in the settings. That being said it would appear to ignore this under certain circumstances.
Regards
John.