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
Am getting error : The sku was not found. Please fetch products first by calling getItems #566
Comments
Same here |
You are buying subscription but using |
I am facing the same problem even when I use getSubscriptions. Why is there a issue with this as well. Any idea ? @hyochan And if there is a complete implementation available for this package (especially for apple in-app) that you might have come across, can you provide a link for that. |
await RNIap.initConnection(); i use the above code its working fine. RNIap.requestSubscription(itemSkus[0]).then((result) => { i also cross verified the itemSkus i am using |
Facing the same issue with |
Me too facing the same issue in android. Am getting 'The sku was not found. Please fetch products first by calling getItems'. |
3.0.0 of react-native-iap
0.57.8 of react-native
Platforms you faced the error (IOS or Android or both?)
Expected behavior
After successful subscribe get the receipt
Actual behavior
Subscription getting error
"The sku was not found. Please fetch products first by calling getItems"
Tested environment (Real Device)
Steps to reproduce the behavior
const itemSkus = Platform.select({
ios: [
''
],
android: [
'sub_1'
]
});
Step 1:
async componentDidMount() {
const msg = await RNIap.initConnection();
const items = await RNIap.getProducts(itemSkus);
RNIap.getProducts(items).then((products) => {
}).catch((error) => {
console.log("inApp getProducts error ",error.message);
})
}
Step 2: Call subscribe
_subscribe(){
it throws error "The sku was not found. Please fetch products first by calling getItems"
The text was updated successfully, but these errors were encountered: