Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose method to check if purchases are available #48

Closed
Brazol opened this issue May 14, 2020 · 11 comments
Closed

Expose method to check if purchases are available #48

Brazol opened this issue May 14, 2020 · 11 comments
Assignees
Milestone

Comments

@Brazol
Copy link

Brazol commented May 14, 2020

https://docs.revenuecat.com/docs/making-purchases#checking-if-purchases-are-available

This one is currently not supported in Flutter, right? I guess it should be easy to expose it via channels since there are examples for both Swift and Kotlin. Do you have it in backlog or maybe there is something that I'm missing?

@Brazol Brazol changed the title Expose method to check if payment is available Expose method to check if purchases are available May 14, 2020
@aboedo
Copy link
Member

aboedo commented May 14, 2020

Hi! 👋 You're correct, it's not exposed yet. We're discussing options for the best implementation of this method that makes sense in a cross-platform environment (iOS and Android have different ways of handling this, with Android being a ton more granular when it comes to what's available).
We're going to expose the method soon, though.

@aboedo aboedo added the backlog label Jun 18, 2020
@bm888
Copy link

bm888 commented Jul 7, 2020

It would be great to see this flutter call in revenuecat soon! Thanks for the consideration.

@stea1thbear
Copy link

stea1thbear commented Aug 31, 2020

Without the canMakePayments iOS method supported in RevenueCat for Flutter you have to call it natively in iOS xcode. This method is required by Apple in order to get approval for purchases. To say RevenueCat offers support for Flutter currently is misleading since you can't get approval for your iOS build with purchases without calling this method from my understanding.

@rkotzy
Copy link
Member

rkotzy commented Sep 2, 2020

@stea1thbear this shouldn't cause any issues with app review. The method is mostly used by kids apps to show a UI if a parent disabled purchases.

A different workaround to know if purchases are disabled could be looking out for PURCHASE_NOT_ALLOWED errors when trying to purchase and showing a UI there if that's a requirement for you.

@chirag-chopra
Copy link

Anyone please help me in implementing this plugin.
I am getting this error
Invalid Play Store credentials errors

I tried this solution but still getting same error. There is already a project in Google Cloud Platform(that is created automatically by firebase when I implemented google login using firebase) but when I go to Google Play Console to link that project then I am unable to find that project in existing projects in Api Access section of Google Play Console. I don't know what's wrong I am doing.

Do I need to do anything special to make that existing Google Cloud Platform to see in Api Access of my google play console?
Please HELP...!

@aboedo
Copy link
Member

aboedo commented Nov 11, 2020

@chirag-chopra the best place to figure out your issue is to contact our support at https://support.revenuecat.com. They'll be able to provide you with detailed assistance and step-by-step instructions.

We reserve GitHub issues for bug reports only.

@chirag-chopra
Copy link

I also tried revenue cat support also but they didn't responded. I am so sorry that I am asking for help like this. But I am roaming here and there on internet for some support. Please help me. I will always remember you.

@armandojimenez
Copy link

I’m a little lost, I’m about to implement this package but here it says the method mentioned in the docs is not available for flutter? How do I know if a user is a premium user?

@aboedo
Copy link
Member

aboedo commented Feb 24, 2021

@armandojimenez this thread refers specifically to a method called canMakePayments, which tells you if the user is able to make payments (for example, a parent may have restricted access to their child so that they can't buy items).
In order to know if a user is a premium user, you check their subscription status (docs here)

@aboedo aboedo assigned beylmk and unassigned vegaro and aboedo Jun 14, 2021
@aboedo
Copy link
Member

aboedo commented Jun 14, 2021

Update here: this feature has been added in #193, and will be a part of the next release.

Sorry for the long wait for this one!

@aboedo aboedo added this to the 3.3.0 milestone Jun 14, 2021
@beylmk
Copy link
Contributor

beylmk commented Jun 16, 2021

This is included in the latest release, 3.3.0: https://github.com/RevenueCat/purchases-flutter/releases/tag/3.3.0

Going to close the ticket for now, but please re-open if you run into any issues!

@beylmk beylmk closed this as completed Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants