Comments (5)
I went to the task switcher and swipes an app off the screen, then the foreground notification not show again, even I rebooted the devices the foreground not auto executed.
It is just simple foreground service, not endless service
I tested on several Devices and it always restarts the Service even if it's getting killed.
While i testing i found out that it does not work on Xiaomi Device. After i stopped all recent Apps it does not restart again.
Does work:
- Samsung
- OnePlus
- Huawei
- Lenovo
Does not work:
- Xiaomi
from endless-service.
Same problem here. It seems like that since Android Oreo 8.0, Google has restricted the services allowed to listen to the boot intent
from endless-service.
It is just simple foreground service, not endless service
@ghost7476 no need to adopt this kind of attitude if you're seeking for help. Anyway, it would be really helpful if you could provide the kind of phone that you're using. As you may know, some brands put battery optimization layers on top of Android that cause abnormal behaviors in the foreground services. Some of these layers may include workarounds, some others don't.
@natanloterio can you check if what @mmaterowski proposes in the final part of this article works for you?
from endless-service.
https://stackoverflow.com/questions/33710694/start-sticky-not-working
from endless-service.
@danielehrhardt did You try to turn off battery optimization for Your app?
from endless-service.
Related Issues (11)
- Foreground service closes automatically
- Service not restarting after Force stop HOT 1
- Not working in Idle mode HOT 1
- How to reliably auto start through BOOT_COMPLETED?
- Service doesn't run after reboot. HOT 2
- Question about start condition on receiver HOT 1
- Null Pointer exception occur intermittently!
- How to start two foreground services at the same time?
- Keep in mind! If we have duplicate of this app - service may dont work properly
- Start the service on Android boot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from endless-service.