Wednesday, July 24, 2024
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 throughout the debugging of

for await lead to Transaction.currentEntitlements {
    guard case .verified(let transaction) = outcome 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

outcome – they’re all inside Transaction.currentEntitlements, the transaction.expirationDate of expired plans are decrease than present date. Probably accepting the very one which has had the very best expirationDate could be the answer however nonetheless…

circumstances:

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



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments