Avoid multiple free trials on in app auto-renewable subscription with multiple accounts on same device

Hello community, I have implemented an auto-renewable subscription on my app, but my problem basically it is to avoid that one user gets more than one free trial using my app, I know that Apple manages that by apple id, but what happens if the user changes the device apple id? the user will get the free trial again, I need help about how to handle that on my app.


My idea its use a device unique id but i don't know if that is the correct solution.


Thanks

Replies

See rich's reply here: https://forums.developer.apple.com/thread/49761

KMT refers to a three year old thread that addresses your question only in the last post (by me). Three years later your concern is still a flaw in the system. You can address it by writing something to the keychain since the keychain survives deletion and reinstallation of the app and also is unaffected by changing the "Apple ID". You then create two autorenewable subscriptions - one with the free initial trial and one without. If the keychain indicates the device purchased the subscription then only offer the second subscription.


But...that's lots of trouble to avoid the rare theft. And consider this - while it is a theft it is not necessarily a lost sale because the thief would most likely not have made the purchase were it not free. So if you have no 'cost of goods' maybe this better ignored.