IAP feature request: Determine if a product is already purchased

As I recall, with the APIs for both Android and iOS it is possible to determine if a non-consumable product already has been purchased.
It would be great if this would be possible with SDKBOX IAP also.

If possible, it would be nice to have such a field in the sdkbox::Product struct.

I put this on the road map

When do you think this would be done?

1 Like

Cant you already detect this with the current IAP plugin ?

I am currently working with Android only, but I archieve this by:

  1. in AppDelegate::applicationDidFinishLaunching I call sdkbox::IAP::init();
  2. in the listener “onInitialized” I call sdkbox::IAP::refresh() and sdkbox::IAP::restore()
  3. in the listener “onRestored” I get all the products reported that are already purchased

Isnt this what you wanna archieve ?

I think it is confusing for the user to be presented with a login screen for the store when entering the app, before even considering to buy anything. I would not recommend doing it that way.

In the shop I have a “Restore purchases” button, which invokes sdkbox::IAP::restore().

However, this is something quite different from the functionality i requested in the original post.

Any updates on this ?

We recommend using restore function for this.