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.
Keep up to date on this post and subscribe to comments
- What is the process for data sync from mobile offline to online?
- Pega MObile Offline- Online Case and Offline Enabled Case Support in 7.2.2
- Identifying sync issues in Pega 722 version- Mobile hybrid client app
- Data Usage in Online and offline hybrid app
- How to update other case or table data from user work list case in Offline Mobile app