i wanted to run a service in background for receiving notifications, most of the apps are not running the background services but my requirement pushes me to run a service without it being foreground with notification. i found that Instagram is running a service for very long time without consuming the battery. i need help.
Asked
Active
Viewed 98 times
0
-
The only people who can tell you how a specific app works are probably under NDA. Ask about the behavior you want, rather than how the other app works. – Gabe Sechan Aug 26 '18 at 03:34
-
sure ill update the requirement but thought it would be easier to refer to something that is doing it – Gouse Mohiddin Aug 26 '18 at 03:35
-
your requirement is just service run in background to fetch data and send notification for that.?? – EL TEGANI MOHAMED HAMAD GABIR Aug 26 '18 at 03:39
-
yes but service is being killed by the system in android oreo or later – Gouse Mohiddin Aug 26 '18 at 03:40
-
read my answer here https://stackoverflow.com/a/52019521/9130109 – EL TEGANI MOHAMED HAMAD GABIR Aug 26 '18 at 03:43