[SDK box][IAP] how do restore product on android works?

[SDK box][IAP] how do restore product on android works?
0

#1

Do I need to provide a button to restore in case of app data is cleared or it will be automatically restored by calling onPurchaseSuccess method?

In simple words on android: Do I need to provide a restore button or it will be restored automatically by SDK box?


#2
### Restore purchase

To restore purchase call  `sdkbox::IAP::restore()` .

> `onRestored`  will be triggered if restore is successful.

http://docs.sdkbox.com/en/plugins/iap/v3-cpp/#restore-purchase

On Android it’s not required no have Restore button, on iOS is required.
So better to add it to have similar functionality.


#3

Thank you for your answer. Do I have to call restore() or it gets called automatically by sdkbox on android?


#4

As far I know, sdkbox does not restore automatically.