Quantcast
Viewing all articles
Browse latest Browse all 17068

React Native - getProducts is empty in android react-native-iap

i had integrate react-native-iap for in-app purchase for ios and android. i had added the product ids on both store iTunes and play console. i also follow the code as example. the product list gets successfully in ios. but in android there will be blank.

Code :

const itemSkus = Platform.select({    ios: ['com.mapta.mepta.coin10',    ],    android: ['com.mapta.mepta.coin10',    ]});const products = await RNIap.getProducts(itemSkus);setProducts(products)console.log("=== products ===", products)

iOS Will get the products, But in android it's blank. please help me.

Thanks.


Viewing all articles
Browse latest Browse all 17068

Trending Articles