Comments (8)
FCM seems to be using a service rather than an empty activity even though they seem to escape battery optimisation for whatever reason.
from android-connector.
The BroadcastReceiver starts the application unless the application has been manually force-killed by the user.
This behavior is known and expected (for instance, when testing matrix clients, I force killed all my matrix client except one).
Do you experience non-waking application while you haven't force-killed the application ? If so, we can debug this issue (probably a vendor issue then) and I'll transfer this to android-connector.
from android-connector.
If it is the vendor issue, FCM has the same issue: firebase/quickstart-android#378 (comment)
from android-connector.
I observed, every now and then, some notifications are not distributed to Element or Fedilab when they have been running in the background for some time. I assumed this was because the system reclaimed the ressources for battery optimization and force killing the app did the same (for test purposes). There's no way for me to reliably reproduce this, unfortunatly.
from android-connector.
You should check that website : https://dontkillmyapp.com/
Do you see solutions for your device ? Do you see improvement if you do what's recommended ?
from android-connector.
I run Lineage. There shouldn't be any optimization beyond what's on AOSP. I guess there's not good solution. Maybe future Android API level come with a solution to ensure an app correctly receives notifications.
from android-connector.
Lineage uses some vendor blobs, I don't know if some on your device can be related to battery optimization 🤔 .
I wonder if the issue doesn't occur after the message is received by the application: have you disabled battery optimization for element for instance ? If element is in background for a while, the sync with the server can takes time (it will be shorten with matrix sync v3) and the app may be killed during this process.
from android-connector.
I just disabled battery optimizations. I'll see if it solves the problem. But honestly, I just wished users wouldn't have to do such configurations. Using a phone should be simple…
Sorry for the noise.
from android-connector.
Related Issues (13)
- Dialog to pick a distributor with app name HOT 1
- `getDistributors` or similar new method should return friendly names HOT 4
- Package visibility filtering on Android 11 HOT 1
- Change API to be closer to the Android/D-Bus spec ? HOT 11
- Open getInstance HOT 1
- Wakelock HOT 1
- RegisterAppWithDialog should have ignore option HOT 2
- Make dialog strings translateable HOT 2
- It seems 2.1.1 disappeared from jitpack.io HOT 1
- Register w/ dialog gets stuck in limbo if a distributor doesn't return NEW_ENDPOINT
- Publish this library to maven central HOT 2
- CIRCULAR REFERENCE: com.android.tools.r8.kotlin.H HOT 1
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 android-connector.