I have promo codes that I created on google play for my user. With this code, the user can use 3 months free of charge. When the user logs in on another device, I can't get the information that the user is in the trial period. Therefore, the purchase screen appears again. how can i solve this. I understand from the code below that the user is a premium member.
1Future updatePurchaseStatus() async {23final purchaserInfo = await Purchases.getCustomerInfo();45final entitlements = purchaserInfo.entitlements.active.values.toList();67_entitlement =8 entitlements.isEmpty ? Entitlement.free : Entitlement.premium;910if (entitlements.isNotEmpty) {11 _entitlementInfo = purchaserInfo.entitlements.active.values.last;12}13notifyListeners();14}

