Hello All,
Does sync work in the background? or it work only while application is open?
Thanks
Prajakta Roshankhede
Hi Prajakta,
As already mentioned, syncing will only work when the application is active on the foreground.
If it is active then you can implement sync at different moments (like login, onrequest, ononline, etc.)
You can also implement a JavaScript timer to start it every 15 minutes if that is what you want.
The performance impact depends on a few factors, most important:
Regards,
Daniel
Daniƫl Kuhlmann wrote:
Thanks Daniel, All the three points are implemented already.
I was only concerned about syncing of data while application is closed. Now I am clear.
Hi Daniel,
I am trying to do the same. Where is the best place to put the js timer so it can run every hour?
When the application is active, sync runs as a background (async) task, so the application is still responsive to user actions.
You can also run the sync on the foreground, than the user has no interaction until the sync is done.
When the application is not running, either suspended or not started at all, then no sync takes place.
Hello Denial,
Is it possible to sync data even if the application is not running?
I want to sync data every after 15 min (like timer).
And if we do so what will be the impact on overall application and even on the phone performance?
Its not work when application is not running. For more information you can refer this post.
Vikas Sharma wrote:
Thanks for sharing that post. It has the solution from me :)
Yes Daniel, answered by you. I was giving reply before that you post answer.
Is there any way to that?
Actually its not possible at least in Outsystems to sync in background when application is not running. What is your use case, as if application is not running so there will be no data to upload on server and if you want to download something then can download on application start.
So please explain what is your use case.
Thanks.
Hi AndrƩ,
You could to that in the OnApplicationReady System client event:
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Platform_Utilities/System_Events/Mobile/On_Application_Ready