Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

242
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda