PeterStaev / nativescript-purchase

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

Get the current user's active subscriptions #112

Closed tangerinegit closed 2 years ago

tangerinegit commented 3 years ago

Hello,

Is there a way to see the current user's active subscriptions on Android? I thought getStoreReceipt() would work, but according to the documentation, on Android this always comes back as undefined.

Thank you.

PeterStaev commented 3 years ago

@tangerinegit I haven't implemented subscriptions, but I think for android you need the transactionReceipt that is in the transaction when you bought the subscription. At least this is how I read the docs: image The plugin populates the token into the transactionReceipt property.