Skip to content

Deep Linking

Deep links are available to the following destinations:

  • Main offers feed - poweredbycdlx://rewards_feed
  • Detail offer feeds: - poweredbycdlx://offer_subfeed?id=<id>
  • Brand Details - poweredbycdlx://brand?id=<brand_id>

The SDK supports being launched via two forms of deep links:

  1. Explicit SDK deep links - Deep links with a poweredbycdlx:// url scheme. These links may be manually constructed and passed directly to present the SDK.
1
2
3
4
let url = URL(string: "poweredbycdlx://brand?id=CVS")
if let deepLink = CDLXDeepLink(url: url) {
    CDLX.instance?.presentRewards(from: self, landingScreen: .deepLink(deepLink))
}
1
2
3
4
5
val url = "poweredbycdlx://brand?id=CVS"
CDLXDeepLink.from(url)?.let { deepLink ->
    // "this" being an Activity
    PoweredByCDLX.instance?.handleDeepLink(this, deepLink)
}