React-native-iap: Billing is unavailable. android

Created on 13 Jun 2019  ยท  6Comments  ยท  Source: dooboolab/react-native-iap

Version of react-native-iap

  `"react-native-iap": "2.5.5",`

Version of react-native

"react-native": "0.59.3",

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

to return true or false

Actual behavior

getting billing is unavailable

Tested environment (Emulator? Real Device?)

Tested on the emulator and real device both even push it on play store internal test and install Samsung j8 and still, I am getting billing is unavailable

I am logged in the play store as well

Steps to reproduce the behavior

I am always getting this error

Error: Billing is unavailable. This may be a problem with your device, or the Play Store may be down.

 _checkStore= async () => {
     try {

       const result = await RNIap.initConnection();

       if(result) {
         this.getSubscriptions();
       }
       console.log('premium1', result);
     } catch(err) {
       console.warn('premium1', err); // standardized err.code and err.message available
     }
   }
๐Ÿ‘ฃ waiting for response ๐Ÿ™ help wanted ๐Ÿค– android

Most helpful comment

์ €๋„ ์•„๋ฌด๋ฌธ์ œ ์—†์ด ์ž˜ ์“ฐ๋‹ค๊ฐ€ ์ตœ๊ทผ์— ํ”„๋กœ์ ํŠธ๋ฅผ ๋‹ค๋ฅธ ์ปดํ“จํ„ฐ๋กœ ์˜ฎ๊ธฐ๋ฉด์„œ ์ด์™€ ๋น„์Šทํ•œ ํ˜„์ƒ์„ ๊ฒช์—ˆ์Šต๋‹ˆ๋‹ค.

์ •ํ™•ํžˆ๋Š”
Error: Billing is unavailable. This may be a problem with your device, or the Play Store may be down.
์œ„ ๋ฉ”์„ธ์ง€์™€ ๋”๋ถˆ์–ด
google play in-app billing api version is less than 3
์ถ”๊ฐ€์ ์ธ ๋ฉ”์„ธ์ง€๋Š” ์ด๋ ‡๊ฒŒ ๋‚˜์™”์—ˆ์Šต๋‹ˆ๋‹ค.

virtual device๋ฅผ ์ƒˆ๋กœ ๋‹ค์‹œ ๊น”๋ฉด์„œ google play store์— ๋กœ๊ทธ์ธ์„ ํ•˜์ง€ ์•Š์•„ ์ƒ๊ธฐ๋Š” ํ˜„์ƒ์ด์˜€์Šต๋‹ˆ๋‹ค.

์—๋ฎฌ๋ ˆ์ดํ„ฐ๋‚ด์— google play store์— ๋กœ๊ทธ์ธํ•˜๋ฉด ๋ฐ”๋กœ ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.

All 6 comments

So I am confused with your code. Which line are you receiving message Error: Billing is unavailable.?

Also, I think you should check your env since I feel this is the problem on your config with the playstore and tester.

thanks, @hyochan, yes I am getting this const result = await RNIap.initConnection();

will check my env thanks

Have you connected to internet?

@maxto024 you need a device that has google play installed in it. Some devices don't have it. Maybe is this the case?

@maxto024 How are you going?

์ €๋„ ์•„๋ฌด๋ฌธ์ œ ์—†์ด ์ž˜ ์“ฐ๋‹ค๊ฐ€ ์ตœ๊ทผ์— ํ”„๋กœ์ ํŠธ๋ฅผ ๋‹ค๋ฅธ ์ปดํ“จํ„ฐ๋กœ ์˜ฎ๊ธฐ๋ฉด์„œ ์ด์™€ ๋น„์Šทํ•œ ํ˜„์ƒ์„ ๊ฒช์—ˆ์Šต๋‹ˆ๋‹ค.

์ •ํ™•ํžˆ๋Š”
Error: Billing is unavailable. This may be a problem with your device, or the Play Store may be down.
์œ„ ๋ฉ”์„ธ์ง€์™€ ๋”๋ถˆ์–ด
google play in-app billing api version is less than 3
์ถ”๊ฐ€์ ์ธ ๋ฉ”์„ธ์ง€๋Š” ์ด๋ ‡๊ฒŒ ๋‚˜์™”์—ˆ์Šต๋‹ˆ๋‹ค.

virtual device๋ฅผ ์ƒˆ๋กœ ๋‹ค์‹œ ๊น”๋ฉด์„œ google play store์— ๋กœ๊ทธ์ธ์„ ํ•˜์ง€ ์•Š์•„ ์ƒ๊ธฐ๋Š” ํ˜„์ƒ์ด์˜€์Šต๋‹ˆ๋‹ค.

์—๋ฎฌ๋ ˆ์ดํ„ฐ๋‚ด์— google play store์— ๋กœ๊ทธ์ธํ•˜๋ฉด ๋ฐ”๋กœ ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chetstone picture chetstone  ยท  4Comments

coldfins picture coldfins  ยท  3Comments

hakkikonu picture hakkikonu  ยท  4Comments

ramondelmondo picture ramondelmondo  ยท  4Comments

safciplak picture safciplak  ยท  3Comments