In my app I have items to show just for users that are paying subscription. User can log to app by e-mail and password and can logout and on same device can log different users. Just classic custom account system.
My problem is that Apple Id in phone is still same. So when different user logged in he could restore purchases even that he didn't buy them.
So my question is how can I fix it? How can I connect Apple account to my custom account? Or at least somehow when trying to restore IAP check that this Apple account already have this subscription but different user was logged in. How other apps do this? With iCloud or server-side settings or what? Thanks for help
P.s.: Is there a difference in this if I am using Auto-renewing and non-renewing subscription? I mean I know differences between them I just want to know if there is different solution to my problem if I use one or another.