'Expo with firebase dynamic links cannot open specific screen using EAS build

I managed to use Firebase dynamic linking to open my Expo app when I build the app using expo build. But when I build using EAS and click on a dynamic link, it only opens the first screen of the app and does not navigate to a specific screen like it should. I tried to handle the links using expo's Linking.addEventListener() and Linking.getInitialURL, also with react-navigation's linking config. I tried building as APKs and app bundles.

I am currently using expo 43 and eas-cli 0.47.0. Tested on Android 8



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source