Giter Site home page Giter Site logo

Comments (8)

christophehenry avatar christophehenry commented on July 22, 2024

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.

p1gp1g avatar p1gp1g commented on July 22, 2024

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.

p1gp1g avatar p1gp1g commented on July 22, 2024

If it is the vendor issue, FCM has the same issue: firebase/quickstart-android#378 (comment)

from android-connector.

christophehenry avatar christophehenry commented on July 22, 2024

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.

p1gp1g avatar p1gp1g commented on July 22, 2024

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.

christophehenry avatar christophehenry commented on July 22, 2024

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.

p1gp1g avatar p1gp1g commented on July 22, 2024

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.

christophehenry avatar christophehenry commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.