跳过内容

创建iOS订阅引导优惠

GitHub

简介

概述

简介

简介

  • 简介
  • 简介
  • 简介
  • 简介

iOS 支持三种类型的引导性优惠:

客户在指定时间内获得免费试用权。试用期结束后,如果客户不取消,他们将按照标准收费率收费。

示例:

  • 7 天免费
  • 14 天免费
  • 1 个月免费

适合:

  • 高价值订阅
  • 功能丰富的应用
  • 培养用户习惯

2. 预付费

2. 预付费

客户只需支付一次折扣价格即可覆盖引导期

示例:

  • $1.99/2个月(然后$9.99/月)
  • $9.99/3个月(然后$19.99/月)

最适合:

  • 承诺信号
  • 现金流需求
  • 测试价格敏感性

4. 按需付费

3.按需付费

客户在多个计费周期内支付折扣价格。

示例:

  • 每月 $1.99 x 3 个月(然后每月 $9.99)
  • 每月 $4.99 x 6 个月(然后每月 $14.99)

适合:

  • 逐渐的承诺
  • 长期价值展示
  • 降低的风险感知

资格要求

资格要求

用户只有在满足以下条件时才能接收介绍性优惠:

  • 尚未收到该产品的介绍性优惠
  • 尚未在同一订阅组中收到任何产品的介绍性优惠
  • 尚未订阅该产品

您必须首先 创建一个自动续订订阅 然后才能添加介绍性优惠

  1. 导航到订阅

    在 App Store Connect 中,转到您的应用的 营利 > 订阅 部分并选择要添加优惠的订阅。

  2. 添加订阅价格

    点击 + “订阅价格”下面的

  3. 图标以打开定价模态窗口。

    创建引导性优惠 选择 “创建引导性优惠”

    创建引导性优惠

  4. 配置国家和开始日期

    国家和地区: 选择优惠将可用的地区

    • 选择所有国家以实现最大覆盖
    • 或限制到特定市场进行测试

    开始日期: 优惠何时可用

    • 可以立即或预定未来
    • 有助于与营销活动的协调

    结束日期(可选): 优惠何时过期

    • 留空表示持续有效
    • 设置有限期限促销
  5. 选择促销类型

    选择以下三种促销类型:

    免费 (免费试用)

    • 选择持续时间(天,周,月)
    • 示例:7天,2周,1个月

    一次性付款

    • 设置单次付款价格
    • 设置付款覆盖的持续时间
    • 示例:$1.99持续2个月

    按需付费

    • 设置折扣价格
    • 设置周期数
    • 示例:$2.99/月3个月
  6. 确认

    查看以下摘要:

    • 优惠类型和有效期
    • 价格细节
    • 介绍期后正常价格
    • 可用日期和国家
  7. 保存

    点击 保存 为创建引导式优惠而设置。它将立即在沙盒模式下可供测试。

优惠配置示例

优惠配置示例

示例 1:标准免费试用

示例 1:标准免费试用
Type: Free
Duration: 7 days
Then: $9.99/month

用户旅程:

  • 第 1-7 天:免费访问
  • 第 8 天:首次收费 $9.99
  • 月度收费继续

示例 2:折扣期初期

示例 2:前期折扣期
Type: Pay Up Front
Price: $4.99
Duration: 3 months
Then: $9.99/month

用户旅程:

  • 第一天:$4.99
  • 90 天访问
  • 第 91 天:$9.99/月

示例 3:渐进式介绍

复制到剪贴板
Type: Pay As You Go
Price: $2.99/month
Periods: 6 months
Then: $9.99/month

第 1-6 个月:$2.99/月

  • 第 7 个月及以后:$9.99/月
  • User Journey:

在您的应用程序中使用

标题:在您的应用程序中使用

原生购买插件将自动处理引导性优惠的呈现和资格:

import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
// Fetch products with intro offer information
const { products } = await NativePurchases.getProducts({
productIdentifiers: ['com.yourapp.premium_monthly'],
productType: PURCHASE_TYPE.SUBS,
});
const product = products[0];
// Display intro offer details (StoreKit sends localized metadata)
if (product.introductoryPrice) {
console.log('Intro price:', product.introductoryPriceString);
console.log('Intro period:', product.introductoryPricePeriod);
console.log('Intro cycles:', product.introductoryPriceCycles);
console.log('Regular price:', product.priceString);
} else {
console.log('No intro offer configured');
}
// Purchase (StoreKit automatically applies intro pricing if eligible)
try {
const transaction = await NativePurchases.purchaseProduct({
productIdentifier: 'com.yourapp.premium_monthly',
productType: PURCHASE_TYPE.SUBS,
});
console.log('Subscription active, receipt length:', transaction.receipt?.length);
await validateReceiptOnServer(transaction.receipt);
} catch (error) {
console.error('Purchase failed:', error);
}

向用户显示引导性优惠

标题:向用户显示引导性优惠

清晰的价值提议:

Try Premium Free for 7 Days
Then $9.99/month. Cancel anytime.

强调节省:

Start at Just $1.99
Get 3 months of Premium for only $1.99
Then $9.99/month

透明的沟通:

Your Free Trial
• Access all premium features
• No charge for 7 days
• $9.99/month after trial
• Cancel anytime, even during trial
function formatIntroOffer(product: any): string {
if (!product.introductoryPrice) {
return `${product.priceString} per ${product.subscriptionPeriod}`;
}
const intro = product.introductoryPrice;
const regular = product.priceString;
if (intro.price === 0) {
// Free trial
return `Try free for ${intro.periodString}, then ${regular}`;
} else if (intro.cycles === 1) {
// Pay up front
return `${intro.priceString} for ${intro.periodString}, then ${regular}`;
} else {
// Enterprise
return `${intro.priceString} for ${intro.cycles} ${intro.periodString}s, then ${regular}`;
}
}
  • 3-7 天:快速决策应用程序,游戏
  • 7-14 天: 最常见的应用
  • 14-30 天: 复杂工具、专业应用
  • 30+ 天: 高值B2B或企业

定价心理学

定价心理学
  • $0.99-$1.99: 测试时的极低门槛
  • 50% 折扣: 强烈的价值感
  • 首月免费context: Capgo Builder / native cloud build 产品页面。角色: 短的 UI 标签或导航项。消息键 `native_build_builder_credit_first` (Native Build Builder Credit First)。

通信时序

通信时序
  • 试用期结束前: 提醒用户即将收费
  • 突出值: 展示使用统计、成就
  • 易于取消: 以透明的流程建立信任

测试引导式购买

测试引导式购买

使用沙盒测试验证行为:

import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
// In sandbox mode, accelerated subscription durations apply:
// - 3 days free trial = 3 minutes
// - 1 week free trial = 3 minutes
// - 1 month free trial = 5 minutes
const { products } = await NativePurchases.getProducts({
productIdentifiers: ['premium_monthly'],
productType: PURCHASE_TYPE.SUBS,
});
// Purchase with intro offer
const transaction = await NativePurchases.purchaseProduct({
productIdentifier: 'premium_monthly',
productType: PURCHASE_TYPE.SUBS,
});
console.log('Intro purchase transaction:', transaction.transactionId);
// Wait for accelerated renewal
setTimeout(async () => {
const { purchases } = await NativePurchases.getPurchases({
productType: PURCHASE_TYPE.SUBS,
});
const premium = purchases.find((purchase) => purchase.productIdentifier === 'premium_monthly');
console.log('After trial state:', premium?.subscriptionState);
}, 180000); // 3 minutes for weekly trial

重要说明

重要说明

资格规则

资格规则
  • 每个用户每个订阅组只有一次优惠
  • 仅适用于新订阅者
  • 在取消后不能再次使用
  • 不适用于订阅升级/交叉升级

StoreKit API

StoreKit API
  • introductoryPrice 显示优惠细节
  • eligibility 方法检查用户是否符合资格
  • 自动应用于购买时间
  • 不需要特殊购买方法
  • 一次订阅中只能激活一个引导式优惠
  • 不能与其他折扣类型合并
  • 不能更改资格规则
  • 苹果控制资格检查

引导式优惠未显示:

  • 检查App Store Connect中是否激活了优惠
  • 验证用户之前是否使用过推广优惠
  • 确保用户之前没有订阅过该组内的任何内容
  • 使用新沙盒账户进行测试

资格检查失败:

  • 等待App Store同步(可能需要2-3小时)
  • 验证产品ID是否正确
  • 检查订阅组配置
  • 在沙盒中使用新测试账户进行测试

显示的价格不正确:

  • 检查区域定价设置
  • 验证货币转换
  • 确保优惠日期是最新的
  • 刷新产品信息

沙盒测试问题:

  • 使用加速时长(3分钟=1周)
  • 为每个测试创建新测试帐户
  • 等待试用期自然完成
  • 分析和优化

分析和优化

跟踪这些指标

跟踪这些指标

引导式优惠接受率
  • 试用期转为付费转换率
  • Analytics and Optimization
  • 试用期取消
  • 首次收费后保留
  • 收入影响
  • 免费试用与付费介绍
  • 试用期长度变异
  • 折扣百分比
  • 单次付款与定期折扣
// Track offer performance
analytics.track('intro_offer_displayed', {
product_id: product.identifier,
offer_type: product.introductoryPriceType,
offer_duration: product.introductoryPricePeriod
});
analytics.track('intro_offer_accepted', {
product_id: product.identifier
});
// Monitor conversion
NativePurchases.addListener('transactionUpdated', (transaction) => {
if (transaction.productIdentifier === product.identifier && transaction.isActive) {
analytics.track('trial_converted', {
transactionId: transaction.transactionId,
productId: transaction.productIdentifier,
});
}
});

下一步

下一步
  • 配置沙盒测试 测试您的介绍性优惠
  • 设置回收营销活动的促销优惠
  • 实施订阅分析
  • 创建目标营销活动

更多资源

下一步

请参阅苹果官方文档中的介绍性优惠 继续从创建iOS订阅介绍性优惠.

如果您正在使用 创建iOS订阅引导方案 计划付款和购买 Using @capgo/native-purchases 使用@capgo/native-purchases 为@Capgo/native-purchases原生功能 Capgo Pricing 为__CAPGO_KEEP_0__ Pricing产品工作流 付款系统 @capgo/native-purchases @capgo/native-purchases 开始使用 了解开始使用的详细信息。