I'm a bit new to coding and to Revenue Cat. I just want to make sure this will work before transitioning from sandbox to production, since there's no way to test it in sandbox.
Purchases.shared.restoreTransactions { (purchaserInfo, error) in
let originalPurchaseDate = purchaserInfo?.originalPurchaseDate
let formatter = DateFormatter()
formatter.dateFormat = "yyyy/MM/dd HH:mm"
let switchOverDate = formatter.date(from: "2020/06/29 00:00")
if originalPurchaseDate! < switchOverDate! {
// unlock all content
}
}
Will this let me grandfather in my old users (who paid for my app) when I switch to subscription?
Thank you!