steprescott / SCPStoreKitManager

Block based store kit manager for In-App Purchase on iOS 7, 8 & 9 with receipt validation.
MIT License
68 stars 29 forks source link

Restoring Purchases on cancelling AlertView does not trigger fail block #10

Closed DanH-SyncInteractive closed 9 years ago

DanH-SyncInteractive commented 9 years ago

Firstly, thank you for this useful class.

However, one thing I've noticed when using the [[SCPStoreKitManager sharedInstance] restorePurchasesPaymentTransactionStateRestored block function, when it is initially triggered, the user is presented with a native UIAlertView for Sign In with "Use Existing Apple ID", "Create New Apple ID" and "Cancel".

If the user selects "Cancel" none of the blocks get called on this function. I would expect the failure block should get called to allow us to react to this scenario?

Thank you

screen shot 2014-11-15 at 16 42 26

steprescott commented 9 years ago

Thanks, will look into this.

rafaelmaroxa commented 9 years ago

Just submitted a Pull Request fixing this issue. Hope that helps.

steprescott commented 9 years ago

Thanks for your work. Been rather busy lately. Hope the wrapper helps.