Skip to content

RevenueCat App Store API Key #7113

@eslezinsky

Description

@eslezinsky

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When the RevenueCat App Store API key is added to App Settings → RevenueCat
after the project is already created, the main.dart file is generated with an
empty string ("") for the appStoreKey parameter, even after saving the key and
rebuilding the project.

The generated code in main.dart looks like:
await revenue_cat.initialize(
"", // App Store key is empty
"goog_XXXXXXXXXXXXXXXX",
loadDataAfterLaunch: true,
);

This causes INVALID_CREDENTIALS error (code 11) on iOS at runtime when
calling getOfferings() or purchasePackage().

Expected Behavior

The App Store API key configured in App Settings → RevenueCat should be
injected into main.dart correctly, so that revenue_cat.initialize() receives
the actual key string instead of an empty string.

Steps to Reproduce

  1. Create a FlutterFlow project with RevenueCat disabled
  2. Build and publish the project at least once
  3. Go to App Settings → RevenueCat
  4. Enable RevenueCat and add the App Store API key (appl_...)
  5. Save settings
  6. Rebuild and export the project code
  7. Open main.dart and observe that the appStoreKey parameter is "" (empty string)

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4wiMn1z892pbwB+KX5bfowiiMsCDt6aI0Z0tZ+FSs8GZT0B4kcYs+kfklUOP24Y1VcPmCKpH8X/MmKv4bDUPkDPReaY7ZF1c9yVxbiJT+lMKrTDZS3b2smN/FYFUuO18ORvyN4C/tuLl4ZwU2YF9yUcAPtJZ/1PWsFReaeXdeK2SrDX1iXc2URm05KZDPz

Visual documentation

Image

Environment

- FlutterFlow version: 
- Platform:
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Metadata

Metadata

Assignees

Labels

status: needs triageA potential issue that has not been confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions