Win back lapsed subscribers with an offer
To win back lapsed subscribers with BillDog, create a promotional offer in App Store Connect and a developer-determined offer in Google Play Console, then publish a separate paywall for a win_back placement. Put the App Store offer in the paywall's Promo Offer Identifier (iOS) setting, which BillDog signs with your In-App Purchase key, and pin the Play offer with Preferred Play offer ID. In the app, call register(placement: "win_back") when CustomerInfo.hasExpiredSubscription is true.
Steps last checked against the SDK source on 16 Nov 2026.
What you'll build
- A discount for returning subscribers in both stores
- A win-back paywall that applies that discount at purchase
- App code that shows it only to users whose subscription lapsed
- A way to reach cancelling and lapsed users outside the app
What you'll need
- An app that shows a paywall from a placement (iOS, Android, Flutter or React Native codelab)
- The App Store connected with your In-App Purchase key (App Store setup) and Google Play connected (Google Play setup)
1. Understand how a win-back discount is applied
2 minBoth stores own the discount and decide who can use it. BillDog's part is to show the right paywall to the right user and to ask the store for the offer when the user buys:
- App Store: a promotional offer must be signed. When the paywall has a Promo Offer Identifier (iOS), the SDK asks BillDog to sign that offer with the In-App Purchase key you saved under Project Settings → Settings → Store Setup, then passes the signed offer to StoreKit.
- Google Play: an offer with developer-determined eligibility is available to every user, and your app decides who sees it. The SDK buys the offer named in Preferred Play offer ID on the paywall's package.
You'll keep the win-back paywall separate from your normal one. A user only sees it when your app registers the win_back placement, which you'll do only for lapsed subscribers.
2. Create the offer in each store
10 min- App Store Connect: open your subscription and add a promotional offer to its prices, for example 50% off for 3 months. Note its offer identifier (such as
winback_50); that's what BillDog needs. Promotional offers are for customers who subscribed before, which is exactly a lapsed subscriber. - Google Play Console: open your subscription, pick the base plan and add an offer with the same terms. Set its eligibility to developer determined, give it an offer ID (such as
winback-50) and add the tagbd-ignore-offer. Activate it.
Don't skip the bd-ignore-offer tag. Google Play lists a developer-determined offer for every user, and when a package pins no offer the SDK picks the longest free trial, else the cheapest discounted offer, on the base plan. Without the tag your normal paywall would hand the win-back discount to new users. Any tag containing -ignore-offer (including RevenueCat's rc-ignore-offer) works, and a tagged offer can still be pinned.
3. Build the win-back paywall and placement
12 min- Open Monetization → Offerings, click New Offering and create one with the Identifier
win_back. Leave Mark as current offering unticked. In the offering editor, click Add Product, tick the subscription the offer belongs to, give it a Package Identifier such asmonthly, click Add Package, then Save Changes. - Create a paywall under Paywalls & Funnels → Create New → Single Paywall. In the builder, open the Products panel and choose
win_backunder Offering. - Still in Products, hover the package, open its menu (⋮) and click Edit preferred offer IDs. Type the Play offer ID (
winback-50) into Preferred Play offer ID and click outside the field to save it. - Click Settings in the left rail. Under App Store Integration, type the App Store offer identifier (
winback_50) into Promo Offer Identifier (iOS). - Write the offer terms as plain text, for example "Welcome back: 50% off your first 3 months". Don't use the trial or intro tokens here:
selectedProduct.introPriceandselectedProduct.trialPeriodTextdescribe the introductory offer, not your win-back offer. - Give the main button a Purchase tap action and the close button a Close Paywall action, then click Publish.
- Open Monetization → Placements, click Create Placement, set the Identifier to
win_back, turn on Requires access withpremiumas the Required Entitlement, and click Create. Click the link icon on its row, tick thewin_backoffering, tick Default and click Link Offerings.
Use the paywall's Promo Offer Identifier (iOS) rather than the package's Preferred App Store promo offer ID when the same product is also in your current offering. A paywall button names only the product, and the iOS SDK looks the package up in your current offering first, so a pin on the win-back package can be missed. The paywall setting applies to every purchase made from that paywall.
4. Show the paywall to lapsed subscribers
5 minCustomerInfo.hasExpiredSubscription is true when the user had a subscription and none is active now. It is false for someone who never subscribed and for a paused Play subscription. Check it when the app comes to the foreground or on a screen where an offer makes sense, and fetch fresh data so you don't act on a cached answer.
import BillDogFull
func offerWinBackIfLapsed() async {
do {
let info = try await BillDog.shared.getCustomerInfo(forceRefresh: true)
guard info.hasExpiredSubscription, !info.hasEntitlement("premium") else { return }
switch try await BillDog.shared.register(placement: "win_back") {
case .purchased, .restored, .entitled:
unlockPremium() // your own UI function
case .error(let error):
print("Win-back paywall failed: \(error)")
default:
break // dismissed, holdout
}
} catch {
print("Win-back check failed: \(error)")
}
}import android.util.Log
import androidx.lifecycle.lifecycleScope
import io.billdog.core.BillDog
import io.billdog.managers.PlacementResult
import kotlinx.coroutines.launch
// Inside your Activity
fun offerWinBackIfLapsed() {
lifecycleScope.launch {
val info = BillDog.getCustomerInfo(forceRefresh = true).getOrNull() ?: return@launch
if (!info.hasExpiredSubscription || info.hasEntitlement("premium")) return@launch
BillDog.register("win_back", this@MainActivity) { result ->
when (result) {
is PlacementResult.Purchased,
is PlacementResult.Restored,
is PlacementResult.Entitled -> unlockPremium() // your own UI function
is PlacementResult.Error -> Log.e("BillDog", "Win-back paywall failed", result.exception)
else -> Unit // Dismissed, Holdout
}
}
}
}Decide how often to show it, for example once per session, and store that yourself. The placement doesn't limit how often it is shown.
5. Reach cancelling and lapsed users outside the app
5 minMost lapsed users don't open the app. BillDog turns store events into journey triggers, so you can message them:
- Subscription Cancelled: auto-renew was turned off. The user keeps access until the period ends, so this is the moment to ask why or remind them what they'll lose.
- Subscription Expired: access ended. Send a push or email that opens the app, where the code from step 4 shows the win-back paywall.
Pick the trigger when you create a journey under Engagement → Journeys. To set up push first, see Send push and in-app messages. Inside the app, a user who cancelled still has an active entitlement with willRenew false; you can show them the store's subscription page with await BillDog.shared.showManageSubscriptions() on iOS or BillDog.showManageSubscriptions(activity) on Android, where they can turn renewal back on.
6. Test the win-back flow
12 min- In a sandbox build with
bd_public_test_YOUR_KEY, subscribe with a store test account (iOS sandbox testing, Android sandbox testing). - Cancel it: on iOS in the sandbox account's subscription settings, on Android in the Play Store app under Subscriptions. Test subscriptions are short, so it expires within minutes.
- Once it has expired, switch the dashboard header to Sandbox, open Audience → Customers and check the subscription is no longer active.
- Relaunch the app so
offerWinBackIfLapsed()runs. The win-back paywall should appear. - Tap the purchase button. The App Store or Google Play sheet should show the discounted price. Complete the purchase and check that
premiumunlocks.
If iOS can't apply the offer, the SDK doesn't block the purchase: it falls back to the standard price, and the StoreKit sheet shows the full price. The Xcode console then logs [BD-PROMO] Promotional offer ... was NOT applied with the reason, and a promotional_offer_not_applied event is tracked. Common causes: the In-App Purchase key isn't saved, the offer identifier doesn't match App Store Connect, or the account never subscribed to that group.
Apple also has win-back offers (iOS 18 and later), which Apple shows to eligible lapsed subscribers in the App Store. Purchases made through them reach BillDog like any other. To apply one from your own UI, pass its id in PurchaseParams:
import BillDogFull
func buyWithAppleWinBack() async {
guard #available(iOS 18.0, *) else { return } // otherwise the offer is ignored
do {
let params = PurchaseParams(productId: "premium_monthly", // your App Store product id
winBackOfferId: "winback_3mo") // the win-back offer id
let result = try await BillDog.shared.purchase(params: params)
print("Purchase result:", result)
} catch {
print("Purchase failed: \(error)")
}
}The SDK applies the offer only if StoreKit lists it as eligible for this user; otherwise it continues as a standard purchase.