Skip to main content

I have used the latest version of purchase_flutter (3.9.3) but when I want to use Amazon, the parameter useamazon isn't recognized by Android studio. Any idea how to get it work?

Hey @Dao Ibrahim Dao, 

purchases_flutter 3.9.3 doesn’t have support for Amazon Store. 

Our Amazon Store support is currently in a pre-release stage, and you can set it up by using the version tagged amazon-latest and following the instructions here: 

https://docs.revenuecat.com/docs/flutter#amazon-appstore


Hey @Andy, I have similar problem.

I am currently facing an issue while trying to implement the RevenueCat SDK in a Flutter project for the Amazon App Store. I have followed the documentation provided for integrating RevenueCat with Flutter, but I am encountering errors during the process. (https://www.revenuecat.com/docs/flutter#amazon-appstore)


Issue:
The problem arises when I add the RevenueCat SDK dependencies to my Flutter project as instructed in the documentation. After adding these dependencies, running flutter run results in errors.

 

Code:

purchases_flutter:
git:
url: git://github.com/revenuecat/purchases-flutter.git
ref: amazon.alpha.3

Error:

Git error. Command: git fetch
stdout:
stderr: fatal: unable to connect to github.com:
github.como0: 140.82.121.3]: errno=Operation timed out

 


@dogukan-nefis-143e4e that error seems to be tied to git itself not being able to fetch the SDK? does cloning the repo (https://github.com/revenuecat/purchases-flutter) manually work for you? 


@Andy thank you for answer. Yes manuall worked however we are getting new error.

No cached Offerings, fetching from network

I/System.out(30553):  OkHttp] sendRequest>>
I/System.out(30553): OkHttp] sendRequest<<
D//Purchases] - DEBUG(30553): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A257b41a303c143c8bace4c34f2ad4c97
D/ Purchases] - DEBUG(30553): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A257b41a303c143c8bace4c34f2ad4c97 304
D/4Purchases] - DEBUG(30553): ℹ️ PurchaserInfo updated, sending to listener.
I/System.out(30553): .okhttp]:check permission begin!
I/System.out(30553): .okhttp]:not MMS!
I/System.out(30553): .okhttp]:not Email!
I/System.out(30553): .OkHttp] sendRequest>>
I/System.out(30553): .OkHttp] sendRequest<<
D/;Purchases] - DEBUG(30553): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A257b41a303c143c8bace4c34f2ad4c97/offerings
D/oPurchases] - DEBUG(30553): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A257b41a303c143c8bace4c34f2ad4c97/offerings 304
D/c (30553): In App Purchasing SDK - Sandbox Mode: sendGetUserDataRequest
D/ProfileInstaller(30553): Installing profile for com.wowooapps.ai.avatar.maker
I/ai.avatar.make(30553): Compiler allocated 4379KB to compile void android.view.ViewRootImpl.performTraversals()

 


@dogukan-nefis-143e4e could you clarify what’s the issue? The output you shared doesn’t seem to include any errors in it. 


Reply