background_locator_fixed icon indicating copy to clipboard operation
background_locator_fixed copied to clipboard

Background Locator starts service and closes immediately

Open MS07062000 opened this issue 1 year ago • 1 comments

Two cases:

  1. When app is running and is in background and my mobile goes in sleep mode the service goes off within minutes.
  2. When I have not gave them (android:stopWithTask="true") in androidManifest.xml. It should have run in background even when app is closed but in that case also the service goes off within minutes.

I am using Android device and android version is 11. In android version 13 it does not open any service. Below is my code: code

MS07062000 avatar Jul 05 '23 11:07 MS07062000

Check if battery optimization is turned on. Try turning it off.

ranahyder87 avatar Jul 08 '23 17:07 ranahyder87