cancel
Showing results for 
Search instead for 
Did you mean: 

Updating cached data of Defining requests from backend at regular intervals in MDK app

karanshaheri
Participant
0 Kudos
422

Hello,

I have built a custom MDK offline app.I want to update the data that is cached on the device for the offline app through defining requests at regular intervals when device is connected to internet. I see that we have the option to set the "Local data expiration", "Data refresh internal" in "Mobile Offline Access" feature. I entered some values in both these fields to test if the data updates work. I couldn't see any URL calls going to the backend for data updates in network trace.

Please let me know if the approach that I am following is correct and suggest the correct approach of doing data updates.

Regards,

Karan Shaheri.

Accepted Solutions (0)

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

You would need to call your Download action at regular intervals while the client is running. Once it goes to the background, the OS takes over and determines if and when it would trigger your Download. It may run for a short period or the OS may delay the triggering. If the app is closed then no sync will be possible since the offline store will be closed.

karanshaheri
Participant
0 Kudos

bill.froelich jitendrakumar.kansal : Can you please guide on the above question. How can I achieve the above scenario?

Regards,

Karan Shaheri.