How to sync the offline data to online on a button click in our V722 mobile app?
We are using V722 in our application development and we have our own mobile app (native) to handle the customer requests. We have worklist (My Applications) and in that we have all pending/submitted work items. We have a button called "Refresh" and we got a new requirement on this button click. The requirement is like when the end user clicks on the button, we need to sync all the offline data to online for that end user.
I know we have a offline to online sync process in the product itself and is being handled through a Service-REST rule instance: DataSync - Synchronization service (Activity:pzDataSyncRequestParser). This service is being invoked from a OOTB offline script rule:pyWeb-login-mobile-synchronization using JS function:clientStoreConfiguration().
But in my new requirement perspective, how we can leverage this offline to online sync process? Please suggest me a best approach to implement this functionality.
Thanks and Regards,
***Edited by Moderator Marissa to update platform capability tags****
After adding the function:datasyncStart() call as mentioned in article, I did my initial round of testing for my requirement and is working as expected. But will wait from my team's observation on this fix. Hoping that they will also be fine. For now, closing this Post.