-
Notifications
You must be signed in to change notification settings - Fork 235
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
SubscriptionOfferDetails NullPointerException #418
Comments
I second that. Set out to find a fix and PR it. @aniealss Did you by any chance proceed any further? |
Before PR-ing it, let's discuss because the following modifications seem to solve it for one-off in-app purchases but subscriptions should also be checked first. In
https://stackoverflow.com/questions/73027160/how-to-pass-token-of-a-one-time-purchase-product-to-google-play-billing-library suggests and this coincides with my experience, too, that there's no need for |
Version of flutter_inapp_purchase 5.4.1
Platforms you faced the error (IOS or Android or both?) Android
if (offerToken == null) {
offerToken = selectedProductDetails.subscriptionOfferDetails!![0].offerToken
}
query BillingClient.ProductType.INAPP product, subscriptionOfferDetails is null
This line throws a NullPointerException
The text was updated successfully, but these errors were encountered: