Skip to Content

How to auto sync offline store of the mobile application

Dec 22, 2016 at 05:17 AM


avatar image

HI All,

We have developed an Hybrid offline Mobile application everything is working fine we are able to flush the stores and we are also able to refresh the offline store.

We have a new requirement in which customer is asking to have a auto sync feature which basically flushes the store when network connectivity is there . It is possible to check the network connectivity of the application and call the flush method to flush the store but , the problem is they don't the user operation to be blocked by it . They want this to happen asynchronously in back , we can also have this but the problem is as the user will continue to write on the same store which is flushing so is it possible to flush the store and write on it ?

10 |10000 characters needed characters left characters exceeded

Hello Vishesh,

Were you able to find solution for your query? If so, you may share solution, it will help others.

If not yet, i would suggest you to reach out to SAP support team by raising an OSS ticket.


JK (Moderator)

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Vishesh Agrawal
Jul 26, 2017 at 08:57 AM

Hi All,

We are successfully able to have autoSync functionality on the device, we are not blocking the screen of the application and starting the Flushing of the store in the background . We also noticed that if the user continues perform operations (Read/Write) on the store that is getting Flushed then it does not cause any issue , If the data is created on the same store during the flush operation has started then the newly created record is not picked for the current flush request.

10 |10000 characters needed characters left characters exceeded