I have an auto-renewable subscription. Also I have the following code for purchasing:
SKProduct* productToPurchase = #create product logic#;
SKPayment* payment = [SKPayment paymentWithProduct:productToPurchase];
[[SKPaymentQueue defaultQueue] addTransactionObserver:observer];
[[SKPaymentQueue defaultQueue] addPayment:payment];
So, the purchasing of an original subscription is ok. After that I close my app and wait offline until at least one of auto-renewal period happens. I launch my app, and my expectation is I'll receive a callback about new transaction here:
- (void)paymentQueue:(SKPaymentQueue*)queue updatedTransactions:(NSArray*)transactions
But nothing happens. I don't receive anything about that offline auto-renewal. Note, that also I add observer asap:
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)options {
...
[[SKPaymentQueue defaultQueue] addTransactionObserver:observer];
...
}
So, what can be wrong here? Or are there more correct ways to understand if the subscription was prolonged?
Thanks a lot! Serge