Forum Libraries, Components, and Plugins

Using Xamarin.InAppBilling, should BillingHandler.ConsumePurchase be called on a non-main thread?

I've implemented in-app billing on Android using the Xamarin.InAppBilling component. There's no mention in the documentation for the component about ConsumePurchase having to be called on a thread other than the UI-thread. However, the Google documentation for the In-App Billing version 3 API says "Don't call the consumePurchase method on the main thread". So, I am wondering whether the Xamarin.InAppBilling component makes the underlying call on a new thread, or whether my code calling BillingHandler.ConsumePurchase should do so from a different thread. Does anybody know? Is the source code available anywhere?

I then wonder if GetPurchases should be called on a different thread too, or whether the Xamarin.InAppBilling component makes the underlying call from a different thread already? Does anybody know?

Sign In or Register to comment.