Please Disable any of Battery saver, Sleeping apps, Background restriction, etc options in your device. When battery saver is turned on, the system places restrictions on all apps. This is an existing feature that is improved with Android 9.x and 10.x.
Note: The list of Battery saver/Battery optimization/Power management options can vary between Android versions and Mobile models.
Some examples :
- Settings-apps-installed apps-GPS-Battery or Power saver- Allow Background running-set to ON
- Settings-apps-GPS-Battery-No restrictions – set to ON
- Settings-Battery-Power saving mode – set to OFF