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

Bearer selection in each app

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

jollajo gravatar image

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

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
1

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

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

Comments

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 +0200 )edit
1

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

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

Follow
1 follower

Stats

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

Seen: 186 times

Last updated: Feb 04 '14