Comments (7)
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.
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.
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.
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.
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.
I think the smacks changes and the adoption of push should let us close this.
from monal.
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)
- [Feature]: Implement XEP-0421: Anonymous unique occupant identifiers for MUCs HOT 1
- [Bug]: regression in group chat creation and inviting members HOT 2
- Monal should respect a chatroom's permission settings HOT 4
- [Bug]: Can't invite prosody server admins to chatrooms in their server HOT 3
- [Bug]: Rename release name to see correct version like it was perfect in the past HOT 1
- [Feature]: Rewrite settings using SwiftUI HOT 2
- [Feature]: Rewrite contact list using SwiftUI
- [Bug]: Contact icon not always displayed in top bar except if scrolled HOT 4
- [Feature]: Rewrite complete chat ui using SwiftUI
- [Feature]: Implement dynamic UI updates for our OMEMO keys list HOT 1
- [Feature]: export/backup Monal data, from/to others monal plateforms or others xmpp clients? HOT 3
- [Feature]: Implement XEP-0492: Chat notification settings
- [Bug]: stun/turn credential problems HOT 15
- [Feature]: Use Geometry Reader and SmartScrollView in Register and Login views HOT 3
- [Feature]: Merge "add contact" and "contact requests" views
- Monal onboarding: some titles don't fit on small screen iphones HOT 1
- [Enhancement]: Change the default target view of contact request notifications HOT 4
- [Bug]: messages sent to public channels are shown with locks, as if encrypted HOT 6
- [Feature]: Rewrite share sheet UI using SwiftUI HOT 3
- [Feature]: Contact Requests view: take into account having multiple accounts
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 monal.