London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
7.4 C
New York
Sunday, November 24, 2024

Revenuecat buy downside in Flutter iOS


static Future<bool> fetchAndPurchaseLifetimeAccess() async {
    attempt {
      // Fetch choices
      Choices choices = await Purchases.getOfferings();
      Providing? providing = choices.present;
      //Printing choices
      choices.all.forEach(
        (key, worth) {
          print("Choices are ; $key : $worth");
        },
      );
      // Test if lifetime bundle is out there
      if (providing != null && providing.lifetime != null) {
        debugPrint('Discovered Lifetime Providing');
        // Buy the lifetime bundle
        CustomerInfo purchaserInfo =
            await Purchases.purchasePackage(providing.lifetime!);
        // Test if the entitlement is lively
        if (purchaserInfo.entitlements.all["zsp2_id"]?.isActive == true) {
          debugPrint("Lifetime entry granted!");

          SharedPreferences prefs = await SharedPreferences.getInstance();
          // Save premium data on SharedPref
          await prefs.setBool('isPremium', true);
          return true;
        }
      } else {
        debugPrint("Lifetime bundle not out there.");
      }
    } catch (e) {
      debugPrint("Error buying: $e");
    }
    return false;
  }
flutter: Making an attempt to buy
flutter: Error buying: PlatformException(23, There is a matter together with your configuration. Test the underlying error for extra particulars. There's an issue together with your configuration. Not one of the merchandise registered within the RevenueCat dashboard may very well be fetched from App Retailer Join (or the StoreKit Configuration file if one is getting used).
flutter: Extra info: https://rev.cat/why-are-offerings-empty, {readable_error_code: CONFIGURATION_ERROR, underlyingErrorMessage: , message: There is a matter together with your configuration. Test the underlying error for extra particulars. There's an issue together with your configuration. Not one of the merchandise registered within the RevenueCat dashboard may very well be fetched from App Retailer Join (or the StoreKit Configuration file if one is getting used).
flutter: Extra info: https://rev.cat/why-are-offerings-empty, code: 23, readableErrorCode: CONFIGURATION_ERROR}, null)

What’s mistaken right here?
Revenuecat iOS setup in documentation is little bit complicated.

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com