[SailfishDevel] Long term TCP connection

Andrew Branson andrew.branson at jollamobile.com
Wed Jan 18 12:28:49 UTC 2017


Hi,

On 18/01/17 12:45, george b wrote:
> But my testing environment was using wifi only. And I expected the TCP
> connection to last longer then just 30 minutes and then collaps.

I think further testing might be needed there - such a problem would 
have been noticed by others. Personally I have ssh sessions open on 
phones all day with no dropouts. Do your ssh session collapse too?

> One other thing:
> What do I need to implement to allow an app to be configured to run as a
> background service? Like WhatsApp in Settings -> Apps -> WhatsApp ->
> 'Allow start of background services on device turn on'?

The equivalent to Android services in Sailfish OS would be daemons. 
Daemons are generally implemented as secondary processes that are 
launched in the background when the app is run, and keep going after the 
app is closed. This process communicates with the main app using some 
sort of inter-process communication such as DBus.

Such process can also be launches as systemd services, but that isn't 
allowed in the Jolla store yet. Some people publish the systemd 
configuration on openrepos, as a companion 'auto-launch' package to the 
main app in the store.

Hope that helps,

Andrew


More information about the Devel mailing list