When Does the MoEngage SDK Sync Card Data?

Timing of Sync

  • The MoEngage SDK automatically hits the API every 45 minutes to fetch newly published cards.
  • The first API call occurs at app launch, followed by subsequent calls every 45 minutes.
  • When you open the MoEngage-provided UI, cards stored in local storage are displayed.
  • To manually refresh the content, refresh the screen, and the API will be triggered within 5 seconds to fetch the latest cards.
  • For Self-Handled Cards: 
    • getCards() retrieves cards from local storage, updated based on the API hit every 45 minutes. This may result in a delay of up to 45 minutes before newly fetched cards appear.
    • fetchCards() directly triggers an API call to retrieve the latest cards from the server and update local storage. This function can only be used if at least 5 minutes have passed since the last API call. If used before the 5-minute window, it retrieves cards only from local storage. In most cases, fetchCards() is a quicker option for getting up-to-date content.

Sent Tracking

  • The Sent status is tracked when the MoEngage server successfully sends the Card Campaign to the user, regardless of whether the user opens the app inbox.   

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?