Auto renewable subscriptions questions

I have this:

  1. User logs in the app (our backend)
  2. User subscribes (auto-renewable subscription) -> send receipt to my server for verification > (if verified) content is unlocked
  3. Now in my app Subscriptions screen user only sees manage button which leads to the apple subscription interface (https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions)
  4. User changes the APPLE ID in the device and opens the app logged in as the SAME user in our backend.

How to understand that the subscription that were made for this account (our backend acc) was made with another APPLE ID so in the subscription screen we dont show the manage option.

Before the user makes a purchase ask them "Which iTunes/apple ID account do you wish to make a purchase with" and then you save that info....should be possible/trivial w/non-renewing, but you want to do auto, so you may need to decide between those.

Apple does not want you to have access to the user's iTunes Account information. You can certainly ask but the user may not want to give it to you. And if you ask, the user can tell you anything they want - (hopefully Apple will refuse to allow you to ask for their password).


Here are two things you can do that might address your particular needs to relate a user on one device with the same user on a different device:


1) You can use the user's iCloud Account as the user identifier key. You can get a token that correlates with the user's iCloud account and indicates to the app when it changes:

https://developer.apple.com/library/content/documentation/General/Conceptual/iCloudDesignGuide/Chapters/iCloudFundametals.html#//apple_ref/doc/uid/TP40012094-CH6-SW1

Or you can write something to the user's key-value file in iCloud.


2) You can require that the user refresh their receipt and use the refreshed receipt to indicate whether or not they have a subscription - this may trigger a log-in to the user's iTunes Account.