How to Test Cards on Your App

This article explains when cards are synced with the MoEngage SDK and how the SDK interacts with the MoEngage servers to fetch the cards.

When Are Cards Available for a User?

After you create and publish a Card campaign, MoEngage server stores the card for each individual in the segmentation. After the campaign is sent, you can confirm that by that time, all the users should have the cards. Now, it's time to see the card on the app.

When Does SDK Sync Cards from the Server?

MoEngage SDK fetches the cards information for a user in the following scenarios:

  • When a user opens the app after it's killed (force stopped), the MoEngage SDK checks with the server to see any cards in the user's Inbox. 
  • When a user opens the app from the background, SDK will sync the cards only if 45 minutes have passed from the last sync.
  • If the user opens the cards inbox, the SDK will sync the cards only if 15 minutes have passed from the last sync.
  • If the user does a pull gesture to sync the cards, the SDK will sync the cards only if 5 seconds have passed from the last sync.

You can raise a support ticket to configure different values for the syncs.

Common Mistakes While Testing Cards

  • When you have installed the app for the first time, the cards are usually fetched on the app open for an anonymous user. When you open the card inbox immediately after you log in, you will see the cards for anonymous user rather than for logged-in user. To see the cards for logged-in users, we recommend killing (force stopping) the app after you log in and opening the app again so that the cards are synced for the right user.
  • Another way to test the cards easily is to create a card campaign targeted to your user after you log in to the app. Add the segmentation criteria to select your customer ID.

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

How can we improve this article?