◉RORK LABJP
●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens
Articles/Business
⟐ Business/2026-05-03Advanced

Revenue Flow Design for Rork Max-Released Apps — Offer Codes, Win-Back, and Push Notification Integration

How to wire offer signing, win-back decisions, and push plus email into a Rork Max app's subscriptions on both StoreKit 2 and Google Play Billing, with the details that look fine but fail (like the signature timestamp unit) checked against the official docs.

Rork Max236StoreKit 217Google Play Billing4Offer CodesWin-BackMonetization40

✦ Premium Article

I was staring at a subscription dashboard where new sign-ups were moving nicely and the month-end renewal count simply wasn't. If you ship Rork Max apps, you may know the moment: the numbers say "growth," and the bank balance doesn't quite agree.

Looking only at acquisition is a habit I recognize in myself. Moving my attention to people who had already paid once changed what I could actually do, though I only noticed that well after the fact.

Below, I walk through offer signing, win-back decisions, and push plus email delivery for both StoreKit 2 and Google Play Billing. I re-checked the specifics against Apple's and Google's documentation, and I've marked the places that can look like they work while quietly failing, such as the unit of the signature timestamp.

Start from your own cancellation reasons, not someone else's averages. That's the one rule I'd put at the top.

Why Start With Reactivation

What it costs to acquire a new subscriber and what it costs to win a lapsed one back differ wildly from app to app. Comparing them with your own numbers beats trusting a circulating "average."

Three measures are enough:

MeasureFormulaWhere the data comes from
New-subscriber costAd spend ÷ new paying usersAd console plus App Store Connect / Play Console
Win-back cost(Total discount given + delivery cost) ÷ returning usersOffer delivery log and purchase events
Retention after returnUsers still paying 6 months after returning ÷ users who returnedYour own subscription status history

A worked example, using assumed numbers, not results: a monthly plan at ¥600 with a "50% off for 3 months" offer sent to 1,000 people, of whom 50 return. The discount per returning user is ¥600 × 50% × 3 = ¥900. If delivery costs ¥1,000 in total, that adds ¥20 per returner, so the win-back cost is ¥920.

One thing is easy to miss: that ¥900 isn't revenue you lost. Without the offer, those users would have paid ¥0. What you compare is the cost of bringing the same number of people in through ads, and how long the returners stay.

People who have paid once have already judged the product worth money. Whether the cause was price, timing, or a missing feature decides which message works, which is why the implementation below branches on the cancellation reason.

Architecture — Four Layers

Before code, divide the system into four layers.

Layer 1: Data Collection. Store user behavior, subscription state, and cancellation reasons. Cloudflare D1 or Firestore are good choices.

Layer 2: Decision Logic. Decide "who gets which offer when." Start rule-based, evolve to ML-driven once data accumulates.

Layer 3: Delivery Execution. Push notifications, email, in-app modals, and App Store offer code distribution.

Layer 4: Measurement. Track effect of each campaign and feed back into the decision layer.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦Designing and implementing a win-back engine that varies offers by cancellation reason
✦Linking offer codes, push, and email across StoreKit 2 and Google Play Billing
✦Subscription edge cases (grace periods, refunds) and choosing RevenueCat vs self-hosted receipts
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⟐ Business2026-10-01
Multiseat Purchases Are Already On: Decide Whether to Keep Them Before October 22
Multiseat purchases for subscriptions have been on by default in App Store Connect since September 16. Before Volume Purchasing starts on October 22, here is how an indie developer can decide, in four questions, whether to keep them.
⟐ Business2026-05-05
Rork Max × RevenueCat Paywalls SDK: Remote Paywalls, A/B Testing, and Conversion Gains
A complete guide to integrating RevenueCat Paywalls SDK with Rork Max apps — enabling remote paywall updates and A/B testing without App Store reviews, with production-ready code examples and conversion optimization strategies.
⟐ Business2026-04-26
Taking a Rork Max Native App Up the App Store Charts — The Order I Build Ads, StoreKit 2, and Subscriptions
The order I follow to grow a Rork Max SwiftUI app into one that stays near the top of its App Store category: a single AdGate that decides when ads may show, StoreKit 2 Transaction.updates monitoring, and where I draw the lines on ASO and retention — with working code.