Warum bekomme ich für alle meine In-App-Käufe InvalidProductiden, obwohl Produkt-IDs App Store Connect entsprechen?IOS

Programmierung für iOS
Guest
 Warum bekomme ich für alle meine In-App-Käufe InvalidProductiden, obwohl Produkt-IDs App Store Connect entsprechen?

Post by Guest »

Ich versuche, meine In-App-Kaufprodukte mit Swiftystorekit in Swift abzurufen. < /p>

Code: Select all

let ids: Set = [monthly_InApp, yearly_InApp, lifetime_InApp]

SwiftyStoreKit.retrieveProductsInfo(ids) { result in
if result.retrievedProducts.count > 1 {
for product in result.retrievedProducts {
if product.productIdentifier == monthly_InApp {
Popup.show(message: "\(product.productIdentifier)", title: "retrievedProducts")
self.monthly_Price_Str = product.localizedPrice ?? ""
self.monthly_Price = Double(truncating: product.price)
} else {
Popup.show(message: "\(product.productIdentifier)", title: "retrievedProducts")
self.yearly_Price_Str = product.localizedPrice ?? ""
self.yearly_Price = Double(truncating: product.price)
}
}
}

if result.error != nil {
// Popup.show(message: "\(result.error)", title: "error")
}

if result.invalidProductIDs.count > 0 {
// Popup.show(message: "\(result.invalidProductIDs)", title: "invalidProductIDs")
}
}

< /code>
Wenn ich dies ausführe, erhalte ich meine Produkt -IDs immer in InvalidProductids.Invalid IDs from SKProductsRequest: ["com.mkkriti.monthly", "com.mkkriti.yearly"]

Was ich bisher überprüft habe:
Meine Produkt -IDs in App Store Connect sind genau:
com.mkkriti.monthly
comcrit. Senden. Zeigen Sie beim Abrufen von Produkten als ungültig.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post