ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #08689
Re: Background services: a problem that we need to face
On 24 Jun 2014 10:47, "Matthew Paul Thomas" <mpt@xxxxxxxxxxxxx> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Fabio Colella wrote on 23/06/14 10:32:
> >
> > 2014-06-23 9:12 GMT+02:00 Thomas Voß <thomas.voss@xxxxxxxxxxxxx
> > ...
> >> On Sun, Jun 22, 2014 at 5:43 PM, Fabio Colella
> >> <fcole90@xxxxxxxxx
> > ...
> >>> Torrent apps(Transmission)
> >>
> >> The download service should be a good starting point here, with
> >> background synchronization being somewhat an exception.
>
> <https://wiki.ubuntu.com/DownloadService/Download> does not say
> anything about which protocols the download service implements. (FTP?
> SFTP? HTTP with digest auth?) But since it asks for an "url", I doubt
> it would be any help for a torrent client.
>
It supports http, https and FTP (i need to test SFTP). At The moment it
does not support any other protocols, that does not mean it should not,
that is, a developer that wants to add torrent support he can always add it
in the service or request it to be added and I'll do my best to get it in
place.
And this can be a general rule, if a service is as generic as the download
manager it should be extended whenever is needed (and is a reasonable
request).
> > ...
> >
> > If we will have a service for GPS in background, like a Runtastic
> > app, this will be something that could happen even on ubuntu. The
> > only way for me is to prompt the user to have access to background
> > services.
>
> It's not the only way. That could be handled by a geofence service: an
> app could ask "wake me up for a moment when the device reaches {less,
> more} than X meters from point Y".
>
> Runtastic would then set X to 20 meters or so, and Y to your current
> location. When you ran 20 meters, it would wake up, record the time
> and your location, set a new geofence 20 meters around your new
> location, and go to sleep again.
>
> > ...
> >
> > My idea is that you would need to ask the permission for
> > background services, like many android apps do to auth google+
> > connection. It could be a system prompt: "The app %s is asking
> > access to use background services". Then if the user presses 'yes'
> > the app will have the apparmor permission for backgound services,
> > not before.
> >
> > ...
>
> One problem with this approach is that users wouldn't be able to make
> an informed decision. What would be the harm of saying yes? Less
> battery life, but how much less? Nobody would know.
>
> - --
> mpt
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlOpNtoACgkQ6PUxNfU6ecr+QACguuluqLjThy07G9sR1wz9nfwk
> ZG0An1XIB1yFVgJe50Y9c+AeFQnQSjWx
> =jk/e
> -----END PGP SIGNATURE-----
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
References