Can we access your project?
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
- Create a FlutterFlow project with RevenueCat disabled
- Build and publish the project at least once
- Go to App Settings → RevenueCat
- Enable RevenueCat and add the App Store API key (appl_...)
- Save settings
- Rebuild and export the project code
- Open main.dart and observe that the appStoreKey parameter is "" (empty string)
Reproducible from Blank
Bug Report Code (Required)
IT4wiMn1z892pbwB+KX5bfowiiMsCDt6aI0Z0tZ+FSs8GZT0B4kcYs+kfklUOP24Y1VcPmCKpH8X/MmKv4bDUPkDPReaY7ZF1c9yVxbiJT+lMKrTDZS3b2smN/FYFUuO18ORvyN4C/tuLl4ZwU2YF9yUcAPtJZ/1PWsFReaeXdeK2SrDX1iXc2URm05KZDPz
Visual documentation
Environment
- FlutterFlow version:
- Platform:
- Browser name and version:
- Operating system and version affected:
Additional Information
No response
Can we access your project?
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
Reproducible from Blank
Bug Report Code (Required)
IT4wiMn1z892pbwB+KX5bfowiiMsCDt6aI0Z0tZ+FSs8GZT0B4kcYs+kfklUOP24Y1VcPmCKpH8X/MmKv4bDUPkDPReaY7ZF1c9yVxbiJT+lMKrTDZS3b2smN/FYFUuO18ORvyN4C/tuLl4ZwU2YF9yUcAPtJZ/1PWsFReaeXdeK2SrDX1iXc2URm05KZDPz
Visual documentation
Environment
Additional Information
No response