We are doing auto renewal from server side by verifying receipt with Apple's API. According to Apple's doc:
During the 24-hour period before the subscription expires, the App Store starts trying to automatically renew it. The App Store makes several attempts to automatically renew the subscription over a period of time but eventually stops if there are too many failed attempts.
So we can start querying 24 hours before it expires with cronjob, but I'm wondering how many times or how long Apple will try to renew when failed. In other words, after how long, I can consider the subscription will no longer be renewed?