maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Background service in SailfishOS (https://talk.maemo.org/showthread.php?t=93363)

smoku 2014-06-20 21:46

Background service in SailfishOS
 
I am working on Pebble Watch support for SailfishOS.
Current implementation requires having an application open which talks to the smar****ch proxying call notifications etc. which is not very robust.
I would rather have some background service I don't have to remember to launch. Preferably D-Bus activated.
What is the suggested way of implementing such service in Nemo/Sailfish?

balisingh 2014-06-21 02:51

Re: Background service in SailfishOS
 
Haha It sensored smar t w a t ch.

coderus 2014-06-21 06:28

Re: Background service in SailfishOS
 
what problem in using dbus services? it's best way to do it :)

smoku 2014-06-21 07:31

Re: Background service in SailfishOS
 
Quote:

Originally Posted by coderus (Post 1430444)
what problem in using dbus services? it's best way to do it :)

No problem really. QtDBus Adaptors are great.
Just asking whether it is the right way to go with Sailfish?

nieldk 2014-06-21 08:04

Re: Background service in SailfishOS
 
Quote:

Originally Posted by smoku (Post 1430452)
No problem really. QtDBus Adaptors are great.
Just asking whether it is the right way to go with Sailfish?

it depends, fx, you need to consider if you want your stuff on Jolla store (or openrepos ;) )

coderus 2014-06-21 08:06

Re: Background service in SailfishOS
 
there are nothing to consider. if you want to make background service you can't be published in Harbour. There are no other way :)

nieldk 2014-06-21 08:55

Re: Background service in SailfishOS
 
Quote:

Originally Posted by coderus (Post 1430454)
there are nothing to consider. if you want to make background service you can't be published in Harbour. There are no other way :)

Sure there is something to consider.
But, if wanting to use dbus, then the decision is not-jolla-store :P

coderus 2014-06-21 09:13

Re: Background service in SailfishOS
 
any background daemons are not allowed for Harbour. There are nothing to consider ;)

magullo 2014-06-21 09:27

Re: Background service in SailfishOS
 
Quote:

Originally Posted by coderus (Post 1430458)
any background daemons are not allowed for Harbour. There are nothing to consider ;)

So for an app like that, one should keep app open and listen for dbus events?
I'm willing to do something simpler for a push button like pressy, so was wondering how get started.

m4r0v3r 2014-06-21 10:33

Re: Background service in SailfishOS
 
is this due to unfinished APIs or a final say as in, this stance will never change? If so time to go back to Android...


All times are GMT. The time now is 17:09.

vBulletin® Version 3.8.8