I have an app with the newer offline functionality built in (the globe icon), which automatically syncs the offline data with Dataverse when online. I have noticed, however, that if I make change in Dataverse with another app, the change is not immediately apparent in the offline-enabled app, even if it is online.
In my case, I have a dropdown menu with an OnSelect that clears a collection, then brings data into that collection from a Dataverse table. Even after running this OnSelect, the cached/local data appears to stay in the collection, even though the device is online. To refresh the local tables with new data, I need to either re-start the app (not a good solution) or manually click the globe icon and select "Check for Updates." After either of these, when the OnSelect runs, it properly updates the collection from Dataverse.
I am not sure, but I also think the sync between offline/online data occurs periodically but I am not sure how often. It also syncs when the device goes offline, then back online.
Is there any way to automate the sync process in this case, with code, vs. waiting for a sync, re-starting the app, or making the user tap the globe icon and "Check for Updates"?
Or, is this the way the process functions?
Thanks for any thoughts on this. Screenshot below (when user taps on globe icon).
