1 min read

Loyalty

The Loyalty feature enhances user engagement and retention by rewarding users for their interactions within the app. It aims to incentivize user engagement by assigning points for specific actions. Users accumulate points over time, which can be redeemed for discounts, exclusive content and other perks.

Without any customisation, Loyalty - Compact Card (default) screens looks like this:

Loyalty - Compact Card screens
Loyalty - Compact Card screens

Without any customisation, Loyalty - BarCode Card screens looks like this:

Loyalty - BarCode Card screens
Loyalty - BarCode Card screens

Without any customisation, Loyalty - Rewards screens looks like this:

Loyalty - Rewards screens
Loyalty - Rewards screens

Without any customisation, Loyalty - Activities screens looks like this:

Loyalty - Activities screens
Loyalty - Activities screens

Start using the Loyalty SDK

The platform module includes the Loyalty SDK. To start using it, you need to include the loyalty content block in CMS. The Loyalty SDK is compose of these modules:

The most common customisations are described in this link.

Koin modules

The Loyalty SDK dependencies are injected using Koin. Loyalty SDK provides the default dependencies definitions via these Koin modules:

Poq Settings

The Loyalty SDK is configurable via LoyaltyComponentSettings. Through LoyaltyComponentSettings you can configure:

  • barcodeFormat: optional, the barcode format that will be used to show the barcode at Club Card and Reward Details Screens. By default, it uses BarcodeFormat.CODE_128 from com.google.zxing library.

Loyalty SDK provides two new deep links:

  • ://loyalty/rewards: it opens LoyaltyActivity with LoyaltyRewardsFragment on top.
  • ://loyalty/activities: it opens LoyaltyActivity with LoyaltyActivitiesFragment on top.
  • ://loyalty: it does nothing by default but it allows you to customise it to open Loyalty screens with your own configuration.