[SailfishDevel] Pull data in background

Tomasz Sterna tomek at xiaoka.com
Mon May 4 06:54:42 UTC 2015

Dnia 2015-05-02, sob o godzinie 22:27 -0300, Nicolas Cisco pisze:
> My problem is how should i poll notifications and
> messages. I have to periodically send an ajax call/http request to an url
> (eg: http://<server addr>/notifications) and the server will answer me with
> a json with all the new messages.

Well... In SailfishOS the messaging framework is Telepathy.

So if you really want to do it Sailfish-way, you would want to implement
a Telepathy plugin for your protocol and plug it in as a standard
messaging app backend.

Having a hidden app or an own background daemon is kludgy and the reason
Telepathy was invented as a solution.

 /o__  "Beauty is transitory."
(_<^'  "Beauty survives."

More information about the Devel mailing list