Re: [SailfishDevel] Pull data in background

2015-05-04 Thread Nicolas Cisco
Thansk Andrey!, i managed to do it with dbus, for the record i've written a blog post with the code: http://nckweb.com.ar/sailing-code/2015/05/04/closing-an-application-without-killing-the-main-loop/ Tomasz Sterna, i didn't know that telepathy protocol existed nor it was implemented on sailfish. A

Re: [SailfishDevel] Pull data in background

2015-05-04 Thread Andrey Kozhevnikov
you need to do it in separate class and implement dbus service for showing running instance when click icon again. try to do it yourself and tell me if you will not success, i'll give you minimal example. 04.05.2015 06:09, Nicolas Cisco пишет: I've create the gui view and set "setQuitOnLastWind

Re: [SailfishDevel] Pull data in background

2015-05-03 Thread Tomasz Sterna
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:///notifications) and the server will answer me with > a json with all the new messages. Wel

Re: [SailfishDevel] Pull data in background

2015-05-03 Thread Nicolas Cisco
I've create the gui view and set "setQuitOnLastWindow" to false. The problem i'm having is that when the app gui is closed (the app continues running on background), but the user can't open it again. How can i reopen the gui view when the user clicks on the menu button of the app?. The main code:

Re: [SailfishDevel] Pull data in background

2015-05-02 Thread Andrey Kozhevnikov
Just make gui view in your application creatable by request and do not quit application when window is closed. 03.05.2015 06:27, Nicolas Cisco пишет: Hi, i'm developing a messaging app (server and client) for a subject at university. The proyect involves developing a server with a REST protoc

[SailfishDevel] Pull data in background

2015-05-02 Thread Nicolas Cisco
Hi, i'm developing a messaging app (server and client) for a subject at university. The proyect involves developing a server with a REST protocol and an android application. In order to have a real case to use it to compare developing an app for android and salifish, i thought that it would be a go