D
D
Danil Chekalin2019-02-15 14:33:19
Android
Danil Chekalin, 2019-02-15 14:33:19

I can't get a list of Android products (In App Purchase), how?

The question is more specifically to the native. I'm trying to get a list of products, but it always returns an empty array.

import * as RNIap from 'react-native-iap'

const itemSkus = Platform.select({
  android: [
    'course.level1',
    'course.level2',
  ]
})

await RNIap.initConnection()
const products = await RNIap.getProducts(itemSkus) // пустой массив

The goods have already been created and it looks like this
5c66a33061697535997892.png
. If I add a predefined test product to the list of received goods android.test.purchased, then it is returned to me in an array.
PS. Today, for the first time in my life, I see the Google Play Console.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question