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."

_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to