Comments (2)
Hello, this is good idea. But unfortunately at the moment do not know about a single vendor where you could detect this directly, so this section would be truly virtual.
On stock Android you can find out that battery saver is running, but I don't this this has direct effect on background processes anyway. You can see if app is or is not optimized on stock Android..
But for other vendors you would need to run a detection background process.. run something for quite a long time when not on charges for instance and see if it runs all the time..
from dont-kill-my-app.
Right, on stock Android – and in general but with limited usefulness – you have android.os.PowerManager#isDeviceIdleMode()
and android.os.PowerManager#isIgnoringBatteryOptimizations(java.lang.String)
.
When it comes to detecting if you are affected by any (vendor-specific) optimizations, our go-to solution has always been setting some flags or storing logs during the execution of background tasks or on delivery of notifications, so that you can check for success when the app is in the foreground the next time.
from dont-kill-my-app.
Related Issues (20)
- Feedback for Other vendors page
- Feedback for Other vendors page HOT 3
- PôLLÀT
- Feedback for Other vendors page
- Feedback for Other vendors page
- Feedback for Other vendors page HOT 1
- Feedback for Other vendors 11 HOT 1
- Tecno spark go 2022
- Feedback for OnePlus page
- Página web no disponible La página web de intent://gpay.app.goo.gl/Hq22Zt#Intent;package=com.google.android.gms;scheme=https;S.browser_fallback_url=https://play.google.com/store/apps/details%3Fid%3Dcom.google.android.apps.nbu.paisa.user&referrer%3Dutm_source%253Du_email%2526utm_medium%253Demail%2526utm_campaign%253Dgpay3_sg_migration_hc_4;end; no se pudo cargar porque: net::ERR_UNKNOWN_URL_SCHEMEPágina web no disponible La página web de intent://gpay.app.goo.gl/Hq22Zt#Intent;package=com.google.android.gms;scheme=https;S.browser_fallback_url=https://play.google.com/store/apps/details%3Fid%3Dcom.google.android.apps.nbu.paisa.user&referrer%3Dutm_source%253Du_email%2526utm_medium%253Demail%2526utm_campaign%253Dgpay3_sg_migration_hc_4;end; no se pudo cargar porque: net::ERR_UNKNOWN_URL_SCHEME
- Feedback for OnePlus page
- masp
- Feedback for Other vendors page HOT 2
- Add Fairphone
- Feedback for Xiaomi page
- E HOT 1
- <a href="https://dontkillmyapp.com/samsung"><img id="badge-shareable" width="306px" src="https://dontkillmyapp.com/badge/samsung3.svg"></a>
- Feedback for Other vendors page
- Feedback for Other vendors page
- Feedback for Other vendors page
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 dont-kill-my-app.