How to perform background service while battery optimization is active

36
April 15, 2019, at 12:50 PM

I currently use the Firebase JobDipatcher to perform a periodic task in the background. The problem is the background service only gets executed when battery optimization is disabled and standby state of the app is manually set to ACTIVE under developer options. Is there a way to do the background task without manually changing all this, because i cannot ask every user of the app to do so. And saw many posts that google will suspend the app if the power management permissions are requested within the app. Any help would be much appreciated.

READ ALSO
Unable to connect to mysql in docker container from another docker container

Unable to connect to mysql in docker container from another docker container

I have two docker containers: mysql and spring boot serviceService container is not connecting to mysql container(failing on the deploy) with following exception: CommunicationsException: Communications link failure So far I have tried using docker --link,...

36
How to Group result from MSQL db by month from a milliseconds column?

How to Group result from MSQL db by month from a milliseconds column?

I'm trying to get total number of item based on month from MSQL database using SLIM framework, When i display data i get result but separated even if there are in the same monthMy code are,

27
i am getting error while using NEW.id in database triggers

i am getting error while using NEW.id in database triggers

i am trying to create a trigger for inserting dataand I want to get the current id for that author or user who is inserting or change in table

28
Creating Unique Index And Insert Data

Creating Unique Index And Insert Data

I am making different question regarding on my problemThey suggest me on this thread Best way to avoid duplicate entry into mysql database Thank you for pointing out this thread on me

22