Thursday, September 11, 2025
HomeiOS Developmentios - IAP: there are two subscriptions of the identical group

ios – IAP: there are two subscriptions of the identical group


Problem: there are two subscriptions of the identical group that come concurrently with each renewal in the course of the debugging of

for await lead to Transaction.currentEntitlements {
    guard case .verified(let transaction) = end result else {
        proceed
    }
    if transaction.revocationDate == nil {
        self.purchasedSubscriptionsIDs.insert(transaction.productID)
    } else {
        self.purchasedSubscriptionsIDs.take away(transaction.productID)
    }
    await transaction.end()
}

steps:

  1. selected some non lowest worth subscription
  2. change plan to some cheaper price subscription

end result – they’re all inside Transaction.currentEntitlements, the transaction.expirationDate of expired plans are decrease than present date. Presumably accepting the very one which has had the best expirationDate is perhaps the answer however nonetheless…

circumstances:

  1. it occurs solely on a tool, simulator is okay
  2. chosen renewal each minute
  3. transaction supervisor reveals all accurately: first increased worth, then it seems expired and the decrease one seems as bought
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments