Giter VIP home page Giter VIP logo

Comments (7)

tmolitor-stud-tu avatar tmolitor-stud-tu commented on August 26, 2024

I just looked at the code and saw you already implemented this (smacks ping and regular ping if smacks isn't available and even whitespace ping if ping isn't available :) )

But: could you lower the ping timeout to 5 minutes? Currently it is set to 10 minutes, which is far too long for some mobile carriers here :(

from monal.

anurodhp avatar anurodhp commented on August 26, 2024

the rough 10 minute ping when in the background is an apple thing. I can probably add a setting to allow the user to adjust the ping when in the foreground but i suspect that will not do you a lot of good since it will likely disconnect eventually in the background.

from monal.

tmolitor-stud-tu avatar tmolitor-stud-tu commented on August 26, 2024

well, such a setting would at least prevent it to get disconnected when in foreground.
But to get this right: apple prevents pings shorter than 10 minutes?

from monal.

nogweii avatar nogweii commented on August 26, 2024

This isn't exactly related, but Android 7.0+ is also moving to aggressively limit background data usage. I believe Google's recommended default setting is only allowing background apps to synchronize once every 15 minutes.

It seems like it's probable that Apple has indeed limited it to no more than once every 10 minutes.

from monal.

tmolitor-stud-tu avatar tmolitor-stud-tu commented on August 26, 2024

That's not fully correct.
As far as I know background data is only limited in doze mode which is activated when the device isn't moved and the display turned off for a ceratin amount of time.

See this for a good explanation: https://developer.android.com/training/monitoring-device-state/doze-standby.html

In the emulator I observed Monal is successfully pinging every minute while in background.

from monal.

anurodhp avatar anurodhp commented on August 26, 2024

I think the smacks changes and the adoption of push should let us close this.

from monal.

tmolitor-stud-tu avatar tmolitor-stud-tu commented on August 26, 2024

Yes, I think so :)
After I revised the complete smacks implementation everything worked as intended (at least in the simulator).

from monal.

Related Issues (20)

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.