RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
608 stars 170 forks source link

Purchases.isConfigured always returns true #1210

Open Ankooo12 opened 3 hours ago

Ankooo12 commented 3 hours ago

Environment


- [x] Version of `purchases-flutter`
`>=3.24.0`
- [x] Testing device version 
`Android API 34`
- [x] How often the issue occurs- every one of your customers is impacted? Only in dev?
    - Only in dev
- [x] [Debug logs](https://docs.revenuecat.com/docs/debugging) that reproduce the issue

PurchasesError(code=InvalidCredentialsError, underlyingErrorMessage=Invalid API Key., message='There was a credentials issue. Check the underlying error for more details.')



- [x] Steps to reproduce, with a description of expected vs. actual behavior
**Other information** (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
1) Added dummy Api Key `dummy`.
2) Run the app.
3) Check that the message is printed in the console.
4) Hot restart the app.
5) Still That error

## Describe the bug ##
I have added a dummy API key in `Purchases.configure(configuration)` and encountered error logs. However, when I call `Purchases.isConfigured`, it returns `true`. Please help resolve this issue. Note that it works fine when the API key is empty.

## Additional context ##

I've tried multiple times, but the issue persists.
RCGitBot commented 3 hours ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!