How to prevent mobile device from blocking while having native OS app opened?

How to prevent mobile device from blocking while having native OS app opened?

  

Hi,

Is there any way how to prevent mobile device from blocking while having native OS app opened?

I am facing the following problem: I run offline sync on the device, it lasts couple of minutes, during this time my phone is being blocked and the sync stops with the error. When I wake up my phone the sync continues in the background but I don't have control over the process as I believe it was raised "OnSyncError" event.

Any advice would be appreciated.

Regards,

Michal

Hi Michal,

I don't thing that approach is recommended. You should try to split the sync process in smaller bits and make it resilient and allow it to resume.

But if you really want to follow your approach check out this plugin: https://www.outsystems.com/forge/component/1743/keepawake-plugin/