EmilAlipiev / XFInAppBilling

MIT License
12 stars 3 forks source link

System.NullReferenceException on _tcsPurchases (android) #20

Closed Stratosf closed 3 years ago

Stratosf commented 3 years ago

Hello! I am currently testing on Android. With the latest nugets I am getting a System.NullReferenceException the first time I call GetPurchasesAsync or CheckIfUserHasActiveSubscriptionAsync. It seems that _tcsPurchases is not initialized until OnQueryPurchasesResponse gets called. Any help is appreciated!

Stratosf commented 3 years ago

I see now it has been fixed in Billing221updateAndroidX so i am going to close this.

EmilAlipiev commented 3 years ago

yep, try the version 4.0.5. I have upgraded to Android Billing 4.0.0 version which is latest from google. Google has it in the release notes also that they fixed the memory leak issue which was crucial.