iaphub / react-native-iaphub

The easiest way to implement IAP (In-app purchase) in your React Native app.
https://www.iaphub.com/
MIT License
317 stars 21 forks source link

Different Users Subscriptions issue #108

Closed WtfLaika closed 2 years ago

WtfLaika commented 2 years ago

Current behavior

Buy subscription using the first account, unsubscribe and log out. Then log in to another account,subscribe and you'll get error and first account will be subscribed

Expected behavior

Second account will be either subscribed or will get error without payment.

Platform

iOS

Environment "react-native": "0.64.1" "react-native-iap": "5.2.6", "react-native-iaphub": "6.4.1",

iaphub commented 2 years ago

Hi @WtfLaika, It is totally normal, if you're looking to transfer the subscription to the second account you'll have to restore the in-app purchases (Iaphub.restore() method: https://github.com/iaphub/react-native-iaphub#restore-user-purchases)

WtfLaika commented 2 years ago

Hi @WtfLaika, It is totally normal, if you're looking to transfer the subscription to the second account you'll have to restore the in-app purchases (Iaphub.restore() method: https://github.com/iaphub/react-native-iaphub#restore-user-purchases)

Hi @iaphub!

But I don't want to transfer or restore subscription.

There should be absolutely separated subscriptions for all users, a certain user has it’s own subscription. When we have another user(account) it has another subscription.

For example look on logic of subscriptions Duolingo.

iaphub commented 2 years ago

That's how iTunes/GooglePlay is working, you cannot have the same subscription twice with the same GooglePlay/iTunes account.