Nothing happend when restore() called (w\o purchasing product)

Hi,

I am running IOS application and running some test on the device and all works well regarding purchasing non-consumable products and also the restore() is working well. I tried to test the following scenario:

After installation of the app when no purchased was done at all and then call the stroe.restore() function - The problem that callback is not called (I assume because there is nothing to restore) which raise the following question :

  1. What really happened in IOS if trying to restore() non-consumable product but no purchased was done before 2) and how to hanndle this situation?

Thanks

  Yuval

store.restore() does not call your transaction call back function when there is nothing to restore.  If there are things to restore, Apple returns them as restored, but Google will return the items as purchased.

The idea is that your app, when calling restore should assume that everything is not purchased. That is you lock everything. Then for the transaction you do get, unlock the items. If you don’t get them, things stay locked and your app goes on with it’s business. If your app can handle the purchase/restore asyncronously, then you don’t need to worry when restore() finishes.

Rob

store.restore() does not call your transaction call back function when there is nothing to restore.  If there are things to restore, Apple returns them as restored, but Google will return the items as purchased.

The idea is that your app, when calling restore should assume that everything is not purchased. That is you lock everything. Then for the transaction you do get, unlock the items. If you don’t get them, things stay locked and your app goes on with it’s business. If your app can handle the purchase/restore asyncronously, then you don’t need to worry when restore() finishes.

Rob