-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Approved and product.id #192
Comments
What do you get when you log "product"? not product.transaction . In my case the product ID and everything is intact but the receipt is missing so I can't verify that authenticity of the purchase |
My product is very funky -- all the data is wiped. The product id is On Mon, May 18, 2015 at 6:13 PM, butlimous notifications@github.com wrote:
Christopher Schaub |
No I'm using "when" with nonconsumable and it's not a problem |
Do you wait to call store.refresh() untill all products are registered? On Mon, May 18, 2015 at 6:19 PM, butlimous notifications@github.com wrote:
Christopher Schaub |
Yes the correct sequence is like this: store.register({id: 'first', type: store.xxxx}); store.when('first', 'updated', function(product) { }); This is the sequence I'm using and It works well. |
Are you sure you have setup the WHOLE environment in iOS correctly? It's more tricky than that of Android. |
I think so. If I've registered products and have a store ready, should I On Mon, May 18, 2015 at 7:12 PM, butlimous notifications@github.com wrote:
Christopher Schaub |
Is the state of the product(s) valid or invalid? |
Valid. On Mon, May 18, 2015 at 8:19 PM, butlimous notifications@github.com wrote:
Christopher Schaub |
In this case I don't really know what's wrong...As long as the product is valid and the confirm purchase is showing the correct price, the approve state should also show the same info. May it's a bug in ionic as I use phonegap |
Thanks, I got it working much better by messing with bundle ids. Is it On Tue, May 19, 2015 at 5:48 AM, butlimous notifications@github.com wrote:
Christopher Schaub |
sorry, calling product.finish() On Tue, May 19, 2015 at 5:55 AM, Christopher Schaub chris@schaub.com
Christopher Schaub |
So maybe it's this. On Android, do I need to use MANAGED instead of On Tue, May 19, 2015 at 5:56 AM, Christopher Schaub chris@schaub.com
Christopher Schaub |
No when creating a product in your Google Play developer account, always shows managed, whether It's consumable or not. Then in your code, write it as usual either CONSUMABLE or NON_CONSUMABLE |
It's weird, iOS is working fine for the most part. But I can't get products in google to register as valid. I have the same bundle id's, BILLING_ID set during plugin install, store object because register works. But products just stay invalid on android. Is there anything special to registering android product I might be missing? My app is in "alpha" and the build is for release, not debug. I've also made sure the uploaded APK matches the one I'm testing with. Any suggestions are apprciated, and thanks for the previous help as well! |
Have you published the app? Remember that the app MUST be published to test the purchase. You can publish the alpha version so that It's not available to public |
Ok, I've got the plugin working much more smoothly now with my app. But, on ios, sometimes after logging in, I get an approved product with a very strange product id, the id is "application data". And it's weird because the product is somehow registered, valid and then approved -- but I'm not passing any product with that id. So, this reply directly relates to my initial comment. Is it possible that the plugin is somethow adding a pseudo product via a bug into store.products? |
How to publish publish the alpha version? I uploaded app, turn-on TestFligh, add tester acc, open in device app via TestFligh. I got:
I think follow is mistakes:
|
Was there ever a resolution to the "application data" id issue? I am having the same problem. |
Is there any update to this issue? I'm also getting this. |
I'm experiencing the same issue.
This is not a big issue, I end up to prevent further .refresh() calls on iOS. |
+1 |
I'm also suffering from this problem. I believe it's because of this code: cordova-plugin-purchase/www/store-ios.js Lines 1360 to 1368 in b9ab6a7
Here's the relevant bit:
Basically it says, 'if we can't get the bundleIdentifier' (presumably the IAP's name), then create a new one with "application data" as the id, and then register it. This callback is in the storekit edit: In case anyone is wondering, at this time |
I'm having the same issue. On the first run, everything runs OK, but on subsequent runs a lot of "fake" products with id "application data" are getting generated and being pushed into the purchase flow because their state is forced to "approved". I will try to circumvent this by checking for "fake" ids in "approved" event handler, but it is still unknown to me as why it happens in the first place. |
@milhad I just wanted to help point you in the right direction
I tried this, but wound up having lots of trouble. Instead what worked for me was writing my event handlers like so:
Essentially, always use Best of luck! |
any update ? the same issue here. why plugin registering a new item as @acoard wrote ? |
Hi, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
So, it looks like when the product moves to APPROVED, the product id is no longer intact, it becomes 'application data' -- but from the doc, it seems that the info is stored in product.transaction.product_id ? But that field of transaction does not exist. The purchase is going through, it's a restore. One other question, should I just use a global "when" to catch updates and switch on status? Or should I use "once" since I'm selling NON_CONSUMABLE?
The text was updated successfully, but these errors were encountered: