We have moved to a new Sailfish OS Forum. Please start new discussions there.

Bearer selection in each app

asked 2014-02-04 00:26:36 +0300

jollajo gravatar image

updated 2014-07-25 16:26:17 +0300

jiit gravatar image

Coming form the Symbian world I'm used that I can choose in each app which bearer (wlan, cellular) the app should use to go online and whether it may go online automatically or if user acknowledgement is required.

There are a few samples where different bearers are sensible: - I download podcasts only over wlan. Hence in my Symbian podcatcher app I forced it wlan to protect my data allowance. - WhatsApp/Mitakuuluu in general do not generate much traffic, however I want to be (almost) always online. So I used to set it to cellular and didn't bother switching bearers in the office when I'm moving in the building.

I guess it's not easy to accomplish in Linux, at least I wouldn't know how to do that with BSD-Style sockets. Maybe there's an approach for that. Is there such a solution for Android and/or iPhone?

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted

answered 2014-02-04 01:42:57 +0300

sauron gravatar image

I believe this kind of behavior has to be set in each app. You could try to ask to the Mitakuuluu developer this possibility.

edit flag offensive delete publish link more


Well that would depend on the author of the app. I would prefer if the system would limit/bind any app to a certain interface. I could imagine that the network manager maintains a data base with a list of applications and how they should connect to the internet

jollajo ( 2014-02-04 13:46:46 +0300 )edit

answered 2014-02-04 14:36:13 +0300

jr gravatar image

Connection manager (ConnMan) has session API that applications should use when they want a network connection. Session API has support for bearer selection. Applications can use the session dbus API directly or preferably via some library. There exists at least connline https://github.com/connectivity/connline library that is created just for this purpose. It would be nice if Qt would use the session API but I am not sure if it does so.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

1 follower


Asked: 2014-02-04 00:26:36 +0300

Seen: 147 times

Last updated: Feb 04 '14