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

IOS subscription improvement #111

Closed WtfLaika closed 2 years ago

WtfLaika commented 2 years ago

@iaphub I saw a feature, that can resolve such a problem as separated subscription for each account. For example in Duolingo I can buy several subscriptions for several accounts.

unnamed

So I tried to reproduce it with iaphub and it worked for android.

1

Explanation of multiusers subscription: 1.Create a lot of clones of your subscriptions(for example 10 clones of monthly subscription). 2.Login in the first account and try to buy subscription.

  1. Log out and login to second account.
  2. Try to buy that subscription, catch error "product_already_owned" and make loop forEach with massive of sku of your clones of that subscription each step of loop you try to buy clone of my subscription(if you didn't catch error "product_already_owned" stop loop)

Troubles:

  1. (IOS) When you try to do the fourth step you either just replace subscription or can't buy clone of your subscription.
  2. (Android and IOS)When i try to buy next clone of subscription i don't need error modal "you're already got this subscription".

Improvement: 1.(IOS) Give opportunity to buy more than one subscription for IOS.

  1. Give opportunity to turn off error modal.
iaphub commented 2 years ago

Hi @WtfLaika,

Regarding your issues:

WtfLaika commented 2 years ago

Thanks for your reply. Now I understand, how to implement multi users subscriptions.

On Fri, Apr 22, 2022 at 2:34 AM iaphub @.***> wrote:

Hi @WtfLaika https://github.com/WtfLaika,

Regarding your issues:

  • If you replace the subscription it is because it is in the same subscription group (to be able to buy a different subscription, it needs to be in a different subscription group)
  • We do not control the display of modals, it comes from iTunes.

— Reply to this email directly, view it on GitHub https://github.com/iaphub/react-native-iaphub/issues/111#issuecomment-1105856515, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUYXOFJBTWMPUVIPDPWXUT3VGHQYLANCNFSM5T4HOF4A . You are receiving this because you were mentioned.Message ID: @.***>