chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

[Question] How purchaseProductForUser really works? #134

Open lucianomlima opened 6 years ago

lucianomlima commented 6 years ago

I've implemented the purchaseProductForUser for a monthly subscription, and I'm passing firebase user UID. But when I change the user in app (but keep the same iTunes account on device), which has another UID, I can restore the previous user's purchases.

The purchaseProductForUser and restorePurchasesForUser methos works per iTunes account? Or does passing different UID to the same iTunes account should work properly?

lucianomlima commented 6 years ago

Some one?

NachtRitter commented 6 years ago

The purchaseProductForUser and restorePurchasesForUser methos works per iTunes account?

As far as I know, purchases are linked to iTunes account.

lucianomlima commented 6 years ago

Then what is the purpose of the purchaseProductForUser if using different username will get products from same account without restriction?

superandrew213 commented 6 years ago

@lucianomlima I'm seeing the same issue. restorePurchasesForUser restores all purchases and not for just the userId given.

superandrew213 commented 6 years ago

@RalfNieuwenhuizen is this still working for you? I can see that you added this feature.