B4A Question Use stable service for b4j socket - Erel (first post)    Jul 01, 2018   (1 reaction) No.
You need to have a foreground service with a partial lock. B4A Question Service in Foreground with Partial Lock - bocker77 (first post)    Feb 06, 2021   (1 reaction) Thanks roumei, it looks like I solved the sleep lock issue by changing where I start the service. I give a warning about battery usage in the app so I cover that. My thoughts that if someone is on a long ride in a car with this app running that a solution would be to plug it into the car's power sou B4A Tutorial Service Modules - Erel (first post)    Apr 18, 2016   (1 reaction) You should use a foreground service together with partial lock (PhoneWakeState). Otherwise the process will be killed while it is in the background. B4A Question How to make the app working in background? - OliverA (first post)    Jan 13, 2022   (1 reaction) Then you're back with creating a foreground service that may still be killed. There are partial solutions to this issue (getting killed) such as enabling partial lock, turning off battery optimization and every time your app goes in the background setting a timer (min 15 minutes) to start the servic B4A Question wifi disconnected when screen off - Erel (first post)    Dec 20, 2020   (1 reaction) 1. Make the service a foreground service. 2. Acquire a partial lock with PhoneWakeState. Example: Background location tracking B4A Question Send GPS location even when the app is minimized! - Erel (first post)    Nov 20, 2018 It is possible. You need to have a foreground service with a partial lock (PhoneWakeState). B4A Question Starting Scheduled service's - Erel (first post)    Apr 02, 2015   (1 reaction) You should use both a foreground service and a partial lock if you want to prevent the CPU from sleeping. B4A Question Huawei stop background services - Erel (first post)    Jul 10, 2017   (2 reactions) It doesn't matter. Foreground service > sticky service.
I guess that Huawei decided to ignore the partial lock. B4A Question Service stops when phone sleeps - Erel (first post)    Jun 07, 2017   (1 reaction) You should use a foreground service with a partial lock (PhoneWakeState). Why? What happens? B4A Question How to make sensor listen while screen off - Erel (first post)    Nov 24, 2016 Are you using a foreground service with a partial lock? Page: 1   2   3   4   5   6   7   Powered by ColBERT |