Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
React Native IAP: getPurchaseHistory() throws error if sandbox account isn't previously signed in

This is for iOS. I'm using in-app purchases in my React Native app, and I use the following code:

     IAP.initConnection()
        .catch((e) => {   
          throwError(`Error connecting to the in-app purchase store: ${e}`)})
        .then(async () => {
          await IAP.getPurchaseHistory()
            .catch(e => throwError(`Errors fetching purchase history: ${e}`))
            .then(async (receipt) => {
              validate(receipt)
            });
        });

If I'm not already signed into a sandbox account Apple ID, calling IAP.getPurchaseHistory prompts the user to sign in. If I do, then IAP.getPurchaseHistory() always throws an error.

Has anyone encountered this?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda