惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LINUX DO - 热门话题
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
Microsoft Security Blog
Microsoft Security Blog
月光博客
月光博客
Jina AI
Jina AI
博客园_首页
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
G
Google Developers Blog
D
Docker
罗磊的独立博客
美团技术团队
爱范儿
爱范儿
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
J
Java Code Geeks
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
SecWiki News
SecWiki News
T
Troy Hunt's Blog
H
Heimdal Security Blog
The Cloudflare Blog
Webroot Blog
Webroot Blog
aimingoo的专栏
aimingoo的专栏
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Full Disclosure
AI
AI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
V
V2EX
Spread Privacy
Spread Privacy
M
MIT News - Artificial intelligence
量子位
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
NISL@THU
NISL@THU
Hacker News: Ask HN
Hacker News: Ask HN
The GitHub Blog
The GitHub Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
Attack and Defense Labs
Attack and Defense Labs

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Why I picked one-time IAP over subscription for 4 indie iOS apps (StoreKit 2 + 2026 data)
孫昊 · 2026-05-06 · via DEV Community

孫昊

dev.to article #26 (paste-ready) — Why I picked one-time IAP over subscription for 4 indie iOS apps (StoreKit 2 + 2026 data)

Calendar: 2026-05-22 09:00 PT
Tags: #ios #swift #indie #monetization
Cover image: 1000x420 — 4 app icons + a $2.99 price tag
Word count: 1800 (technical angle, more code than Substack version)
Series: Part of "Day 60 indie iOS dev" series


TL;DR

I shipped 4 indie iOS utility apps. Conventional wisdom in 2026 says go subscription. I went freemium + one-time IAP. The 2026 conversion data + Apple tax math show one-time wins for utility apps with occasional value delivery.

This post: the conversion math, the StoreKit 2 wiring, the paywall trigger logic, and what I'm tracking.

The conversion gap most devs miss

Adapty 2026 benchmark, indie segment:

Model Median conversion
Hard paywall 12.11%
Freemium + subscription 2.18%

5x. Counter-intuitive but consistent across genres.

Hypothesis: friction-resolved decisions convert better than gradient try-then-pay flows. When users hit a paywall, they decide once. When they're in a freemium funnel, they defer indefinitely.

For utility apps specifically (Adapty), download → trial rate is 24%, meaning users actually engage paywalls.

The Apple tax math people forget

Looking only at headline pricing makes subscription look superior:

$2.99 one-time → user pays $2.99
$1.99/month   → user pays $23.88/year (8x)

Enter fullscreen mode Exit fullscreen mode

But run the actual unit economics:

$2.99 one-time:
  Apple cuts 30% → dev gets $2.09
  Net per converting user: $2.09

$1.99/month:
  Apple cuts 30% Y1 → dev gets $16.72/yr
  But indie retention is 30-50% in Y1 → effective $6.69
  Y2 cut drops to 15% → $20.30/yr — but only 15-20% of original users last to Y2

Enter fullscreen mode Exit fullscreen mode

Combine with the 5x conversion gap:

Per 1000 downloads:
  One-time:    1000 × 12% × $2.99 × 0.7 = $251
  Subscription: 1000 × 2.18% × $1.99 × 5 × 0.7 = $152

Enter fullscreen mode Exit fullscreen mode

One-time wins by $99 per 1000 downloads, before counting churn-related ops cost on subscription.

When subscription actually wins

Three conditions, all must hold:

  1. Continuous server cost (AI inference, cloud storage, sync)
  2. Daily habitual usage (meditation, fitness, language learning)
  3. You have LiveOps capacity (content drops, retention campaigns)

For most indie utility apps, none apply. Defaulting to subscription is fighting your own product against the conversion data.

My 4-app pricing matrix

AutoChoice  (decision wheel) → Free + $2.99 one-time
AltitudeNow (altimeter)      → Free + $1.99 one-time
DaysUntil   (countdown widget) → Free + dual track
                                  ($4.99 once OR $0.99/month)
PromptVault (prompt manager)  → TBD (likely subscription, AI cost)

Enter fullscreen mode Exit fullscreen mode

DaysUntil splits user behavior:

  • 80% set 5-10 events, view passively → one-time fits
  • 15% are heavy users with 30+ events → subscription captures their willingness

StoreKit 2 wiring (~90 lines per app, identical across apps)

import Foundation
import StoreKit
import Observation

@MainActor
@Observable
final class IAPManager {
    static let premiumProductID = "com.jiejuefuyou.<app>.premium"

    var isPremium: Bool = false
    var products: [Product] = []
    var purchaseInProgress: Bool = false
    var lastError: String?

    private nonisolated(unsafe) var listenerTask: Task<Void, Never>?

    init() {
        listenerTask = Task { [weak self] in
            for await update in Transaction.updates {
                guard case .verified(let t) = update else { continue }
                await t.finish()
                await self?.refreshEntitlements()
            }
        }
    }

    deinit { listenerTask?.cancel() }

    func loadProducts() async {
        do {
            products = try await Product.products(for: [Self.premiumProductID])
        } catch {
            lastError = error.localizedDescription
        }
    }

    func purchase() async {
        guard let product = products.first else {
            await loadProducts()
            return
        }
        purchaseInProgress = true
        defer { purchaseInProgress = false }
        do {
            let result = try await product.purchase()
            switch result {
            case .success(let verification):
                if case .verified(let t) = verification {
                    await t.finish()
                }
                await refreshEntitlements()
            case .userCancelled, .pending:
                break
            @unknown default:
                break
            }
        } catch {
            lastError = error.localizedDescription
        }
    }

    func restore() async {
        do {
            try await AppStore.sync()
        } catch {
            lastError = error.localizedDescription
        }
        await refreshEntitlements()
    }

    private func refreshEntitlements() async {
        var entitled = false
        for await result in Transaction.currentEntitlements {
            if case .verified(let t) = result,
               t.productID == Self.premiumProductID,
               t.revocationDate == nil {
                entitled = true
            }
        }
        isPremium = entitled
    }
}

Enter fullscreen mode Exit fullscreen mode

A few notes on what's important:

  1. Transaction.updates listener task is mandatory — pending purchases (parental approval, family sharing) only resolve here, not in the .purchase() call site
  2. refreshEntitlements() iterates Transaction.currentEntitlements instead of querying receipts directly — StoreKit 2's modern path
  3. AppStore.sync() for restore — required by Apple review (Guideline 3.1.1)
  4. @MainActor + @Observable — clean SwiftUI integration, no ObservableObject legacy

PaywallView trigger strategy

5 trigger moments, ordered by conversion likelihood:

// 1. Free tier limit hit (highest conv)
if store.activeList?.choices.count >= 5 && !iap.isPremium {
    Button("Add more (Premium)") { showPaywall = true }
}

// 2. Premium-only feature requested
.disabled(!iap.isPremium && requiresPremium)
.overlay {
    if !iap.isPremium && requiresPremium {
        Image(systemName: "lock.fill").foregroundStyle(.secondary)
    }
}

// 3. Settings passive entry point
Section {
    Button {
        showPaywall = true
    } label: {
        HStack {
            Label("AutoChoice Premium", systemImage: "sparkles")
            Spacer()
            Text(iap.isPremium ? "Unlocked" : "$2.99")
                .foregroundStyle(.secondary)
        }
    }
}

// 4. Beyond-free-window data access
let cutoff = Date().addingTimeInterval(-7 * 24 * 3600)
let visible = iap.isPremium ? store.history : store.history.filter { $0.date > cutoff }

// 5. Onboarding screen 3 (preview, not forced)
OnboardingScreen(
    title: "Premium features",
    subtitle: "Unlock infinitely. One-time $2.99.",
    isPaywallPreview: true
)

Enter fullscreen mode Exit fullscreen mode

Don't:

  • Show paywall on first launch (Apple Guideline 4.0 reject risk)
  • Re-show on every launch (annoying)
  • Lock all features (users can't experience value)

Anti-pattern: Apple subscription gotchas I'm avoiding

For DaysUntil's subscription side, Apple Guideline 3.1.2 requires:

  • Auto-renewal disclosure ("Auto-renews monthly")
  • Terms of Use link to Apple's stdEULA
  • Privacy Policy link
  • Cancellation instructions
VStack(spacing: 4) {
    Text("Auto-renews monthly. Cancel anytime in Settings.")
        .font(.caption2)
        .foregroundStyle(.secondary)
    HStack {
        Link("Terms", destination: URL(string: "https://www.apple.com/legal/internet-services/itunes/dev/stdeula/")!)
        Text("·")
        Link("Privacy", destination: URL(string: "https://jiejuefuyou.github.io/privacy.html")!)
    }
    .font(.caption2)
}

Enter fullscreen mode Exit fullscreen mode

Skipping these is a common Guideline 3.1.2 reject.

ASC IAP setup checklist (per app)

For each app, in App Store Connect:

1. My Apps → <app> → Monetization → In-App Purchases
2. + Add → Non-Consumable
3. Reference Name: <app>_premium_unlock
4. Product ID: com.jiejuefuyou.<app>.premium  ← MUST match Swift constant
5. Price tier: $2.99 / $1.99 / $4.99 (Tier 2/3/5)
6. Localizations: en-US, ja, zh-Hans (3 markets)
7. Review screenshot (paywall in simulator)
8. Review notes: "One-time non-consumable to unlock premium features"
9. Save → Ready to Submit
10. Submit with next binary

Enter fullscreen mode Exit fullscreen mode

Common reject reasons:

  • Product ID mismatch with code → can't load
  • Description vague ("premium features") → must list features
  • Restore Purchase missing → required by Guideline
  • Subscription terms missing → 3.1.2 reject

What I'm tracking

Day 30 metrics:
  - Conversion rate (target 5-12%)
  - Restore Purchase rate (target 5-10%)
  - Refund rate (target <2%)
  - Cross-app cross-promo CTR (target 5-15%)

Day 90 metrics:
  - DAU growth (organic + ASO)
  - Per-app vs combined revenue
  - Paywall trigger source distribution

Enter fullscreen mode Exit fullscreen mode

If 5% conv holds, the model is right. If it's 2%, paywall trigger needs work.

TL;DR

  • Adapty 2026 data: hard paywall converts 5x better than freemium subscription for utility apps
  • Apple tax math: one-time wins after retention reality, not before
  • StoreKit 2 makes one-time IAP nearly free to wire (~90 lines)
  • 5 paywall trigger moments matter; first-launch is not one of them
  • I'll publish Day 30 numbers in 30 days

If you've shipped indie iOS with one-time IAP, drop a comment with your conversion + restore rates. I'd compare.


Code samples available

The IAPManager.swift + PaywallView.swift used in all 4 apps:
https://github.com/jiejuefuyou/autoapp-ios-iap-template (link placeholder, ship after Day 30 review)

See also

Tags

#ios #swift #indie #monetization #storekit #appstore #swiftui


A/B subject candidates

  1. "Why I picked one-time IAP over subscription for 4 indie iOS apps (StoreKit 2 + 2026 data)"
  2. "I shipped 4 iOS apps. Subscription was wrong for utility apps. Here's the math."
  3. "StoreKit 2 + freemium one-time IAP: 90-line wiring + 5 paywall triggers + 2026 conversion data"