V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
leo7476040305
V2EX  ›  iOS

在测试 iOS Subscription 的时候遇到一些奇怪的问题

  •  
  •   leo7476040305 · 250 天前 · 674 次点击
    这是一个创建于 250 天前的主题,其中的信息可能已经有所发展或是发生改变。
    StoreKit 2 在测试 iOS subscription 的时候遇到一些奇怪的问题,不知道各位有没有遇到相同的问题

    测试环境: iOS 16.2 / Xcode 14.2 / SandBox Test Account / 真机

    问题 1:
    沙盒测试订阅的时候,前 5 次是正常的,然后不再续订,Notification 返回
    'notificationType': 'EXPIRED', 'subtype': 'VOLUNTARY'
    AppStore Server 的文档是这么写的:
    “VOLUNTARY Applies to the EXPIRED notificationType. A notification with this subtype indicates that the subscription expired after the user disabled subscription auto-renewal.”
    可问题是我并没有手动去禁止 Auto-Renewal

    问题 2:
    在订阅过期未续费后重新续费时不弹出确认订阅的对话框,也没有报错信息,直接返回 success ,transactionId 是已过期的 ID ,然而换另一个 productId 的 plan 则可以弹出
    比如从一个付款周期为一个月的 Plan 点击不弹出对话框,而点击年付的 Plan 则会弹出对话框

    Google 到相似的案例: https://developer.apple.com/forums/thread/723126
    但其中提供的解决方案对我的情况并没有生效
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2882 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:23 · PVG 08:23 · LAX 17:23 · JFK 20:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.