PeterStaev / nativescript-purchase

:moneybag: A NativeScript plugin for making in-app purchases!
Apache License 2.0
83 stars 28 forks source link

Return promise for restorePurchase #69

Closed interrobrian closed 5 years ago

interrobrian commented 5 years ago

We ran into a scenario where we wanted to know if restore purchases returned no purchases at all on Android. This doesn't get expressed through Transactions, so this pull request makes restorePurchases return its promise on Android, so that the caller can know when it's done. It still returns nothing on iOS, but you can use getStoreReceipt to do the same thing.

interrobrian commented 5 years ago

Done

PeterStaev commented 5 years ago

Thanks for your contribution! New version is on npm.