Restore callback from google?

I couldn’t test this yet and thought maybe you are more experienced with this and have an answer:

Is Google Play sending a restore callback when you have bought an app and need to reinstall is? Is this handled like the restore with apple? I have read somewhere that restore is not supported by google.

For example: I’m saving a file when an app is bought. When the app is deleted the file also is gone. What happens with the google iap when I reinstall the app and want to restore it because I already have bought it? I have to get a feedback, so the app can save the file… how can I check this and do this?

Thank you!

Daniela

Hi Daniela,

Google Play does support ‘restore’ functionality, but a bit differently than Apple.  On iOS, when you call store.restore(), your callback function will be called with a transaction state of ‘refunded’.  On Android with Google Play, when you call store.restore(), your callback function will be called with a transaction state of ‘purchased’.  In other words, on Android, you can’t distinguish an original purchase from a restored transaction – they both come through with a state of ‘purchased’.

Hope this helps!

  • Andrew

Thank you very much for the info!

Hi Daniela,

Google Play does support ‘restore’ functionality, but a bit differently than Apple.  On iOS, when you call store.restore(), your callback function will be called with a transaction state of ‘refunded’.  On Android with Google Play, when you call store.restore(), your callback function will be called with a transaction state of ‘purchased’.  In other words, on Android, you can’t distinguish an original purchase from a restored transaction – they both come through with a state of ‘purchased’.

Hope this helps!

  • Andrew

Thank you very much for the info!