You can indirectly do this with the restore purchases functionality, I believe the way you handle this is by listening for the state changes AFTER calling restoreTransactions
, then as each one is returned (or none at all) you set those objects as purchases in the same way as if the user was buying them right there, so like this I think...
InAppBilling.restoreTransactions();
...
// Then wait for this to get called per item to be restored
InAppBilling.addEventListener(InAppBilling.PURCHASE_STATE_CHANGED_EVENT, function(e){
// These events and the JSON object returned are detailed on the [Android Dev Site](http://developer.android.com/google/play/billing/billing_reference.html#billing-intents)
// verify signature
var sign = e.signature;
.....
// Get the returned JSON object
var response = JSON.parse(e.signedData);
// Now do app logic with an identifier from the response object, I think like below
var id = response.productId;
....
});
Or some variant of the above, I think the key observation here is that using restoreTransactions is the way to go.