question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linking.addEventListener('url') won't fire when app is built with eas:build

See original GitHub issue

After dealing with some issues related to uncommited files I’ve managed to build the app with eas:build but there are some weird things going on.

The most critical is that the app is not reacting after opened through a deeplink (which in our case means that our login flow is broken). To be clear: the app opens but my handler is not being fired. The weird thing is that the same app build with expo:build is working perfectly (link to the APKs below).

I also noticed that status bar behavior is different from one build to the other. Here’s the result with eas:build]

Screenshot_20210812-155614 Screenshot_20210812-151729

Here’s the (expected) result when build with expo:build: Screenshot_20210812-155500 Screenshot_20210812-155526

Does anybody have a clue of what could that be?

Sorry for not preparing a clean reproducible demo but here’s our repo and our app.config.ts and the APKs:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
MasoudJBcommented, May 7, 2022

@pdandradeb Did you find a way to trigger Linking.addEventListener(‘url’) with EAS build?

1reaction
fadanicommented, Sep 6, 2021

I had the exact same issue with Linking.addEventListener('url') in our login flow, and used @brentvatne’s example to see what was the difference between a working setup and mine. The bit that i had to do to solve this was to add

"scheme": "https",

to my app.json, which was not required with expo:build. I didn’t have to modify the existing intentFilters setup.

hope this helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native Linking AddEventListener not working
This is because Linking have a specific method when the app start through a intent. Try with this: componentDidMount() { Linking.
Read more >
Expo deeplinking issue with addEventListener
I use the following event handlers on a componentDidMount() on the entry file of the application. Linking.addEventListener('url', this.
Read more >
How ES Modules have redefined web development
What I'm sharing here is probably common knowledge to some. Heck, import-able JavaScript modules have lurked in the ECMAScript standard since ...
Read more >
Elder.js: A Svelte Framework and Static Site Generator
js' does not have to crawl all of the links of a site to know what pages need to be generated. This allows...
Read more >
javascript unexpected token export - You.com | The search engine ...
You have to transpile foobar with babel before you link it in other project. You can add a build script in package.json of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found