SKPaymentTransactionStateRestored doesn't get called when In App purchase is being restored

前端 未结 4 1268
抹茶落季
抹茶落季 2021-02-15 11:09

In my In App purchase the case SKPaymentTransactionStateRestored: method does not get called when the purchase is restored, instead, case SKPaymentTransaction

4条回答
  •  执念已碎
    2021-02-15 11:29

    I've a clue. The method (paymentqueue:updatedTransactions:) and especcially the SKPaymentTransactionStateRestored: state is getting called, when i create a SKProductRequest and start loading it.

    SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIdentifiers: [NSSet setWithArray: productIdentifiers]];
            request.delegate = self; 
            [request start];
    

    I'll have a look on Apples solution and see, if i can find any differences.

提交回复
热议问题