Search code examples
iosin-app-purchaseappstore-approval

Can I link auto-renewable subscription to app account?


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:

  1. User A creates an account on my app
  2. User A buys a subscription
  3. I record on my server that User A has a subscription
  4. User A logs out from my app (but not from the device)
  5. User A hands his phone to User B
  6. User B logs into his account on my app
  7. User B does not have access to the subscription bought by A, because even though it's the same Apple Id, on my server User A and B are different users.

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.


Solution

  • 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.