Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

236
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!