D davemorris Active Member Licensed User Longtime User Feb 7, 2019 #1 Hi Guys Has anybody got an ideas regarding keep an app alive for Android 9? I have developed an App which works great on Android 4 thro to 8.1, but the same app on Android 9 appears to go to sleep after about 10 minutes after the screen has locked. The same App on older versions of Android runs all day! The app already has following classic techniques for keeping services alive. Invoking Partial Lock Running the service in foreground mlWifi.holdWifiOn (my app uses Wifi) Also most of the keep alive tasks are performed within the Starter Service - I have seen some comments suggesting it is not good to put the Start service into foreground (is that were it goes wrong?) Any suggestions Dave
Hi Guys Has anybody got an ideas regarding keep an app alive for Android 9? I have developed an App which works great on Android 4 thro to 8.1, but the same app on Android 9 appears to go to sleep after about 10 minutes after the screen has locked. The same App on older versions of Android runs all day! The app already has following classic techniques for keeping services alive. Invoking Partial Lock Running the service in foreground mlWifi.holdWifiOn (my app uses Wifi) Also most of the keep alive tasks are performed within the Starter Service - I have seen some comments suggesting it is not good to put the Start service into foreground (is that were it goes wrong?) Any suggestions Dave
DonManfred Expert Licensed User Longtime User Feb 7, 2019 #2 Check this Example. https://www.b4x.com/android/forum/threads/background-location-tracking.99873/ Upvote 0