I’m using the following code to set originalPurchaseDate:
Purchases.shared.getCustomerInfo { info, error in
if let error = error {
print(error)
return
}
if let date = info?.originalPurchaseDate {
UserDefaults.standard.originalPurchaseDate = date
}
}
However I noticed `info?.originalPurchaseDate` is nil (either the info or originalPurchaseDate) in production. (I extracted UserDefaults on my JB device, the app is installed from the AppStore and I can see the StoreKit/receipt is present as expected)
In the debug build the info (CustomerInfo) is not nil, but as expected the `originalPurchaseDate` is not available.
What could be the problem?
I want to use this code in my second app which I’m moving from the paid-upfront to freemium, but it seems I might not be able to use it.
Thank you.