sckor/AnystoneStoreKit

Restore Completed Called Before Verification Completes

Closed this issue · 2 comments

The restore completion callbacks are called prior to verification being completed. This is an issue because the quantities for items are only updated after verification completes.

For example, I have an app where the store has a tableview that contains the items a user has purchased. The store view controller is set as the delegate and listens for the restore complete callback. When it receives it checks to see which items are marked as purchased and updates the list. The problem is that when the restore callback is invoked the items haven't been updated yet and they show up as not purchased since they're still waiting for verification to complete.

I realize that this is pretty much identical to an issue that I had brought up a year ago and that had since been closed. The original question was related to subscriptions and this is occurring with non-consumables so I'm thinking it merits its own issue.

Hi,

It's certainly possible that there is a race there. I have not tested with the server based verification in some time. Thanks for reporting this.

Sean.

On 2012-07-24, at 11:36 AM, Ghirigoro reply@reply.github.com wrote:

The restore completion callbacks are called prior to verification being completed. This is an issue because the quantities for items are only updated after verification completes.

For example, I have an app where the store has a tableview that contains the items a user has purchased. The store view controller is set as the delegate and listens for the restore complete callback. When it receives it checks to see which items are marked as purchased and updates the list. The problem is that when the restore callback is invoked the items haven't been updated yet and they show up as not purchased since they're still waiting for verification to complete.


Reply to this email directly or view it on GitHub:
#14