`"react-native-iap": "2.5.5",`
"react-native": "0.59.3",
Android
to return true or false
getting billing is unavailable
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
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
}
}
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์ ๋ก๊ทธ์ธํ๋ฉด ๋ฐ๋ก ํด๊ฒฐ๋ฉ๋๋ค.
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์ ๋ก๊ทธ์ธํ๋ฉด ๋ฐ๋ก ํด๊ฒฐ๋ฉ๋๋ค.