-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
Android users not eligible for free trial #2476
Comments
Hello, @fbotalla |
@shivanitp Unfortunately no, I am not sure if this library is really being maintained much anymore. The only main difference I see in it anyway is implementation ‘com.android.billingclient:billing:4.0.0’ I checked the example repo and it looks like they don't even use it on their example. |
@fbotalla it works for me now i will also try with the new updated one,s as you mentioned. |
@fbotalla do you have any idea about how to pass the offer id when purchasing a subscription? |
What I do is this: subs are all my subscription
This happen as an initialize function. UseEffect if you want
Then when user buys sub
Hope this helps. I do get the correct offerToken, but my android users al NOT eligible for free trials.. |
@shivanitp or @usmanabid94 were you guys able to find a solution? |
@fbotalla |
@shivanitp Also are you on "react-native-iap": "^12.10.5", ? Thanks! |
yes, it's latest "react-native-iap": "^12.10.5" // get the subscritption // after slecting plan buyProductId request purchase let purchase = await requestSubscription({ subscriptionOffers }) |
Thank you I will test it out on my end. just double checking.. await requestSubscription({sku, subscriptionOffers}) and not requestSubscription({ subscriptionOffers }) right? I get an error when I have requestSubscription({ subscriptionOffers }) on iOS, because it requires a sku. |
@fbotalla @shivanitp |
@shivanitp @fbotalla @Yevgen32 Hey guys! I'm facing the same issue on version 12.15.0. Did you find a solution? |
All of my new Android users are NOT eligible for the free trial.
I am using the correct way:
... subscriptionOffers: [{sku: productId, offerToken}], ...
My Google Play subscription environment is set up correctly with the free trial as an offer to new users.
"react-native-iap": "^12.10.5",
"react-native": "0.71.8",
Android devices
The text was updated successfully, but these errors were encountered: