Hallo Leute,
Im Moment bringe ich meiner macOS Applikation gerade In-App-Purchases bei. Soweit funktioniert es ganz gut, aber ich kämpfe mit der Möglichkeit, Käufe wiederherzustellen und bin ziemlich verwirrt...
Es handelt sich bei dem Produkt um ein nicht-konsumierbares Feature. Mit anderen Worten, für die Wiederherstellung reicht es aus, das aktuelle Receipt neu anzufordern. Dies mache ich so
Leider wird nach dem Request (in der Sandbox, ausserhalb von Xcode) immer die Delegate-Methode
Da das Vorgehen eigentlich sehr "straight forward" ist, fällt mir einfach keine Fehlerquelle ein. Konkret bin ich noch mehr verwirrt, denn
Wer auch immer schon mit IAP unter macOS gearbeitet hat: Bitte schubs' mich in die richtige Richtung
Ratlos, Mattes
Im Moment bringe ich meiner macOS Applikation gerade In-App-Purchases bei. Soweit funktioniert es ganz gut, aber ich kämpfe mit der Möglichkeit, Käufe wiederherzustellen und bin ziemlich verwirrt...
Es handelt sich bei dem Produkt um ein nicht-konsumierbares Feature. Mit anderen Worten, für die Wiederherstellung reicht es aus, das aktuelle Receipt neu anzufordern. Dies mache ich so
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
aufgerufen, wobei das Error-Objekt nil ist.Da das Vorgehen eigentlich sehr "straight forward" ist, fällt mir einfach keine Fehlerquelle ein. Konkret bin ich noch mehr verwirrt, denn
- ... in welchem Szenario sollte ein Benutzer eigentlich Einkäufe wiederherstellen wollen? Er "verliert" sie ja nur, wenn er das Receipt löscht, dass sich im App-Bundle befindet ... also die ganze App. Dann kann er diese ja neu laden (oder aus einem Backup restoren) und beim ersten Start wird das Receipt inkl. Käufe wieder aus dem App-Store geladen
- ... die Klasse
SKReceiptRefreshRequest
gibt es erst ab macOS 10.9, während die anderen Teile des StoreKits seit 10.7 verfügbar sind.
Wer auch immer schon mit IAP unter macOS gearbeitet hat: Bitte schubs' mich in die richtige Richtung
Ratlos, Mattes
Diese Seite bleibt aus technischen Gründen unbedruckt.