You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My case is like this: I have an app that offers subscriptions for extra functionality. The problem is that after a subscription is purchased (successfully), the app works as expected, but when the app is closed and started again - it looks like nothing was purchased and when I try to buy it again, I get "You have already bought this item." from Google Play. As I check my Google Play account I can see the active subscription.
I'm using Cordova 4.0 and latest version of the plugin.
After some debuging it turned out that the state of the subscription is approved and not owned, as expected. owned property is false. transaction property is populated with the coresponding data. canPurchase is false.
So... What can be causing this anomaly or where can I look for the "troublemaker"?
The text was updated successfully, but these errors were encountered:
Your code is responsible for having the purchase go from "approved" to "owned". This allows your app to perform validation of the purchase each time it starts.
You should have something like:
store.when("my_product").approved(function(p){// no validation, just confirm the purchase.p.finish();});
This will be called each time your app starts for all purchases, allowing you to check if they're expired, fake or whatever (if you want to do those checks).
Hi guys,
My case is like this: I have an app that offers subscriptions for extra functionality. The problem is that after a subscription is purchased (successfully), the app works as expected, but when the app is closed and started again - it looks like nothing was purchased and when I try to buy it again, I get "You have already bought this item." from Google Play. As I check my Google Play account I can see the active subscription.
I'm using Cordova 4.0 and latest version of the plugin.
After some debuging it turned out that the state of the subscription is approved and not owned, as expected. owned property is false. transaction property is populated with the coresponding data. canPurchase is false.
So... What can be causing this anomaly or where can I look for the "troublemaker"?
The text was updated successfully, but these errors were encountered: