Base on the documentation of React Native’s Linking module, some specifc native code is required. Is this already setup within Expo?
Also, In our current setup, we are attempting to call Linking.getInitialUrl() to grab a potential app link to preparation to send the user to the correct app view. However, we have two issues with this:
Many times, the Linking.getInitialUrl() will never receive the external link.
When we do receive the link, we never retrieve the actually url. More of a default my-app://
Now on a standalone distributed build clicking on links with that proper domain cause the app to open. However, Linking.getInitiaulUrl() still resolves to just the Expo linkingUri, instead of the universal link that was tapped on. This is contradictory to Facebook’s guide in their Linking docs. So, it looks like Expo’s implementation is incompatible.
However…if I eject to ExpoKit (with CRNA), everything works as expected, without any changes to the native project code (other then setting up the associated domains in the relevant plist file). The same appears to go for Android as well.