I have developed an Ionic 4 app that allows users to create an unlimited number of groups. By default, each of the created groups has the same basic features and full features can be accessed once the user subscribes the group to a premium package (subscription per-group basis).
The premium package consists of a monthly and yearly subscription, and I managed to implement a single auto-renewal subscription which is for one group only. However, since the number of groups created is unlimited and each of the groups can be upgraded to a premium package, I did not find any reference on how to configure the multiple auto-renewable subscriptions dynamically. This is important as the billing need to be done separately for each group.
Based on Apple Developer documentation, https://developer.apple.com/app-store/subscriptions/
If your app needs to offer users the ability to buy multiple subscriptions — for example, to subscribe to more than one channel in a streaming app — you can add these subscriptions to different groups. Users who buy subscriptions in multiple groups will be billed separately for each subscription.
According to the above statement, am I required to register different Subscription Group for each created group? If yes, how to do so dynamically. In the App Store Connect, when I've tried to set up the in-app purchases, they provided a reference link for multiple auto-renewal subscriptions but the site is not working anymore.
As for Google Play, I've got no clue at all from these documentations, https://developer.android.com/google/play/billing/subs, and https://support.google.com/googleplay/android-developer/answer/140504?hl=en
Note:
- Plugin used for the in-app purchase is Ionic Native In App Purchase 2 (https://github.com/j3k0/cordova-plugin-purchase)
- Life360 is the example of an existing app that uses the subscription method that I wanted to implement