Just switched to RevenueCat and added some code (React Native) to sync past purchases. It works great, but synced customers don’t have all of the attributes I’ve set up for new purchases.
First thought was to check if syncPurchases returns something, and use that to call Purchases.setAttributes.
purchaseInfo = await Purchases.syncPurchases();
if(purchaseInfo){
console.log(purchaseInfo);
}
For me, it’s only returning “undefined”. Does it return something if there’s a valid receipt? If not, can I just throw in a Purchases.setAttributes before or after calling syncPurchases, so that these synced users get the proper identifiers?