Hi Unity Devs,
Is it possible to have a global subscription (users can only access the app if they have a subscription) for iOS and Android, without changing (a lot) to the code-base?
The ideal scenario would be, that Apple/Google provide a “needs subscription” flag in their stores, so we don’t need to handle user-data on our end. But I didn’t find that flag in their stores.
If that’s not possible, what would be an easy way to implement this, without the need of dealing with user-data (Accounts etc)?
Any hints appreciated,
Rene
Hi Rene,
Just so we understand, do you mean that the user cannot run the app without a subscription? So long as the subscription is not cross-platform (ie, the same subscription allows them to access the app across all platforms), there is no need for user accounts on your end.
If my assumptions above are correct, simply make a subscription product available on each platform’s store, detect whether or not the product has been purchased upon loading your app, and if not, prompt the user to buy (or restore it) before accessing the rest of the app.
I do not believe there’s any way to detect subscriptions from the platform’s store itself, only from within the app.
If instead you mean that you want an external subscription not sold from within the app, that is another thing altogether.
Please let me know if this helps or give us clarifying information if it doesn’t.