-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
GetPurchasesAsync Exception #66
Comments
I'm looking the source code of this plugin and, maybe, there is a bug in "ToIABPurchase" method:
Should be replaced with:
I don't know if the crash is related with this, but can be an improvement. Thanks |
@jamesmontemagno I discovered that the real problem is that is necessary to call
to reset the
instance. Working with Subscriptions I've found another problem in the "ToIABPurchase" method. Preferring the "OriginalTransaction" it's not possible to detect the last renewing DateTime. Why you don't use directly the "transaction" object? Best regards, |
Oh i see now, looks like a documentation issue. Let me fix this up. |
@jamesmontemagno CrossInAppBIlling.Current.Dispose(); is not sufficient. If you call "CrossInAppBilling.Dispose()" the CrossInAppBIlling.Current.Dispose(); is included, but also a new Lazy for "Current" is created. To reproduce the problem:
Best regards, |
I have updated the documentation. |
@MarcorOnline Can you able to make it working restore purchases for subscription? If so could you please post the code on how to do it?. I am in the same situation. |
If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin: 1.2.2 (nuget)
Device Tested On: iPhone 6S Plus
iOS Version: iOS 8
Hello.
I'm using this library to purchase Auto-Renewable Subscriptions on Xamarin Forms.
The purchase process works, but after 1 month (subscription expiration) I'm having an issue to check if already exists (restore).
When I try to get the purchased items, using GetPurchasesAsync, an exception occurs:
https://gist.github.com/MarcorOnline/319897c5256614272aed9c62acc47376
Code snippet
var storePurchased = await billing.GetPurchasesAsync(ItemType.Subscription);
Thanks for your support
The text was updated successfully, but these errors were encountered: