so I have implemented an authentication system on my app, and now I'm going to implement auto-renewable subscription.
I'd like to link a subscription to a user from my app, so if say:
Would this be allowed by Apple, or once a subscription is bought by an Apple Id, it has to be available regardless of in-app accounts?
Thanks.
Let me summarize what's going on: If someone logs in to the app, your app must request the active subscriptions from the App Store.
If the iOS device is still logged in with user's A Apple ID, then your app will receive user A's subscriptions from the App Store. It makes indeed sense to expect that these subscriptions are then activated even though it's another user.
You could check with your server if the current subscriptions belongs to the user account and warn the user about any mismatch and ask to logout from the App Store.
But I'm actually not sure what Apple thinks about this scenario and it would be best to ask Apple.