Discussions

Ask a Question
Back to All

Checking users' status in Flutter

Hi, I am getting error about checking users' current status.

Firstly, I have successfully integrated the Adapty system and am able to prompt users to purchase subscriptions.

Users can successfully subscribe a product but I cannot control it. Because accessLevels list are always returning empty. But I have one, 'premium'.

final profile = await Adapty().getProfile(); // successfully getting profile and profile id

debugPrint(profile.accessLevels.length.toString()); // prints 0

If it hadn't been for 0 coming, I could have checked the ones that are premium. However, since accesslevels comes as 0, naturally accesslevels['premium'].isActive returns null. Has anyone encountered this issue?