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

240
Vistas
subscription.listener.apply is not a function (react-native iOS)

Whenever I am opening the app for the first time from Testflight, the app crashes with the following error.

TypeError: subscription.listener.apply is not a function. (In 'subscription.listener.apply(subscription.context, args)', 'subscription.listener.apply' is undefined)

This is not happening in debug mode, and happens only during the first install from TestFlight, after the first crash it works fine.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Ok, my issue was that I was not using Linking of react-native package correctly.

Linking.addEventListener('url', this.handleOpenURL);

const handleOpenURL = async () => {
 ...
}

In my above code, the handleOpenURL is an async function which was causing the issue. Removing the async resolved the issue.

const handleOpenURL = () => {
     ...
}

I still have to figure out why this issue was not crashing my Android app, and also this issue was fine in react-native 0.64, but started crashing in iOS when I updated react-native to latest 0.66.4.

about 4 years ago · Juan Pablo Isaza Denunciar
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