One iOS subscription for different web service accounts?

Hi,


am planning to integrate a paid web service into an existing iOS app. The web service already has its own account/subscription system. The user will now be able to purchase subscriptions from within the iOS app.


  • The user installs the app on device1 and connects to an existing web account user1
  • The user purchases an iOS subscription and thus activates access to the paid content. The subscription belongs to user1.
  • The user installs the app on device2 and connects to an existing web account user2
  • The user restores his purchases and thus activates the subscription on device2. The subscription should now be activated for the connected user2 but it already belongs to user1...


How to solve this?


According to the Apple guidelines the user has to be able to use the subscription on all his devices. Of course the user could install the app on device2 and connect to the same account user1 as on device1. In this case, it would not be a problem to access/use the subscription on device2 as well.


But how to avoid to unlock two (or even more) web accounts with the same iOS subscription?

Replies

Use the user's iCloud key-value file to record the user's username on your web service. If the user tries to log onto another username, don't allow them to credit the subscription to that other username.