Giter VIP home page Giter VIP logo

Comments (5)

huycozy avatar huycozy commented on July 3, 2024

Hi @vongrad

Wait for the subscription to expire and then reactivate it

I wonder how we re-activate the subscription that has been canceled? When I click on Resubscribe button from https://play.google.com/store/account/subscriptions, it says: "Can't resubscribe"

from flutter.

vongrad avatar vongrad commented on July 3, 2024

How long did you wait before re-subscribing? I am able to click on the re-subscribe few minutes after the subscription expires in Google Play and it goes through without any issues.

The reason why this is important for me is that if user subscribes from Google Play after the subscription expires, my backend receives Google RTDN notification with type "purchase", but it does not contain "obfuscatedAccountId" that I specified when initially creating the subscription to pair it with a user - I guess its because its considered as a completely new purchase even the Google Play button says re-subscribe.

At this point, my backend has no idea who purchased the subscription because of the empty "obfuscatedAccountId", so in order to pair it, I need my app to be able to get notified about subscription purchases on startup, grab the purchaseToken along with currently logged in user and send it to my backend to pair the subscription with user.

from flutter.

huycozy avatar huycozy commented on July 3, 2024

How long did you wait before re-subscribing?

5 minutes for my test subscription period of 1 week (https://developer.android.com/google/play/billing/test#testing-subscriptions)

Also, could you share how you Close your app? Do you just bring app to the background or kill app instance from Recent app menu?

from flutter.

vongrad avatar vongrad commented on July 3, 2024

That is strange, I test it exactly the same way. I kill the app from the Recent app menu, so its not running at all.

from flutter.

huycozy avatar huycozy commented on July 3, 2024

Could you check this with package's example?

Android app receives the new subscription purchase on the purchaseStream

When you re-open app, how do you debug this? (or just set a debug point inside the stream listener?)

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.