Discussions

Ask a Question
Back to All

getPaywalls dont work

I am not able to list the products and paywalls with getPaywalls.

The error occurs in the emulator, in a project without Typescript.

An error message appears:
{ adaptyCode: 'billingUnavailable', localizedDescription: 'Play Market request failed: Billing service unavailable on device.'}

appID : com.apppathplus
Email: [email protected]

My code:

try {
         adapty.paywalls.getPaywalls();
         const paywalls = await adapty.paywalls.getPaywalls({forceUpdate: true});

         //console.log('result-->',paywalls,products)
         console.log('paywalls-->',paywalls)

     }catch(AdaptyError) {
         console.log('get_products-->',AdaptyError)
     }

Can you help me?

Thanks,

André Alencar