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

Web support ? #1124

Closed
dleurs opened this issue Jul 29, 2024 · 6 comments
Closed

Web support ? #1124

dleurs opened this issue Jul 29, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@dleurs
Copy link

dleurs commented Jul 29, 2024

How to handle web ?

It is an issue for my app Trompe / trompe.fr

I don't necessary need to process web payment, but users which have purchased a premium subscription should also access Premium features on web

@dleurs dleurs added the enhancement New feature or request label Jul 29, 2024
@RCGitBot
Copy link
Contributor

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

@dleurs
Copy link
Author

dleurs commented Jul 30, 2024

I found a work-around with linking firebase firestore and revenuecat :

class RevenueCatEntitlement {
  String? expires_date;
  String? grace_period_expires_date;
  String? product_identifier;
  String? purchase_date;

  bool get isSubActive {
    try {
      if (expires_date.isNullOrEmpty) {
        return false;
      }
      DateTime expiresDate = DateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parseUtc(expires_date!); // Dateformat from ChatGPT based on "2024-07-30T11:28:16Z"
      DateTime now = DateTime.now().toUtc();
      bool isSubActive = expiresDate.isAfter(now);
      return isSubActive;
    } catch (e) {
      developer.log("Issue RevenueCatEntitlement isSubActive : $e");
      return false;
    }
  }

@nyeu
Copy link

nyeu commented Jul 31, 2024

Hi @dleurs,
We have discussed adding support for Flutter Web internally previously, but I'll go ahead and share your feature request with the rest of the team to raise the feature again. While we don't have a concrete roadmap or ETA yet, the team will work to get this prioritized.
Since you found a workaround I'll go ahead and close the ticket but feel free to reopen it if you have any question.

@nyeu nyeu closed this as completed Jul 31, 2024
@Tananga
Copy link

Tananga commented Oct 8, 2024

Stripe have Web support

@Pebsie
Copy link

Pebsie commented Oct 16, 2024

Now that RevenueCat has a built-in web payment provider, is this something that might be considered returning to?

@teodorpenkov
Copy link

Any ETA on this?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants