V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
leo7476040305
V2EX  ›  iOS

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

  •  
  •   leo7476040305 · Sep 2, 2023 · 1135 views
    This topic created in 977 days ago, the information mentioned may be changed or developed.
    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
    但其中提供的解决方案对我的情况并没有生效
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3088 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:01 · PVG 23:01 · LAX 08:01 · JFK 11:01
    ♥ Do have faith in what you're doing.