The docs say:
The SDK will update the cache if it's older than 5 minutes, but only if you call
getCustomerInfo()
However in my testing, whenever I run the below function, the requestTimeMillis remains stale, even after 5 minutes, and I’ve called `getCustomerInfo()`.
I was under the impression this timestamp would change every 5 mins regardless of purchase, to reflect the getCustomerInfo request. Is that not the case?
import moment from "moment";
import Purchases from "react-native-purchases";
async function logRequestDate() {
const customerInfo = await Purchases.getCustomerInfo();
const { requestDateMillis } = customerInfo;
const lastRequestDateString = moment(requestTimeMillis).format("hh:mm:ssa - DD/MM/YY");
console.log(lastRequestDateString); // eg. "08:30:05pm - 22/12/22"
}
logRequestDate();