Please provide the following:
- SDK Version: 35.0.0
- Platforms(Android/iOS/web/all): Android
$ expo diagnostics
Expo CLI 3.4.1 environment info: System: OS: macOS 10.14.5 Shell: 5.3 - /bin/zsh Binaries: Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node Yarn: 1.19.1 - ~/.yarn/bin/yarn npm: 6.9.0 - ~/.nvm/versions/node/v10.15.3/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman IDEs: Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: expo: ^35.0.0 => 35.0.0 react: 16.8.3 => 16.8.3 react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8 react-navigation: ^3.11.0 => 3.11.1 npmGlobalPackages: expo-cli: 3.4.1
I published to production (in the App and Play Stores) code that receives a push notification (via
Notifications.addListener, generates a url (via
Linking.makeUrl and appending stuff) and tries to open it calling
Linking.openURL( url ) the URL looks like this:
On iOS the
mymodel/123 screen is opened correctly! However, on Android the main screen is opened. The URL is the correct one (
myapp://mymodel/123) however, I have a listener setup for the url (
Linking.addEventListener( 'url', this._handleOpenURL )) and the url received there is
https://expo.io:443/@myaccount/myapp, which looks suspicious and is NOT the behaviour in iOS or the expected one. I’m using react-router for the navigation but I suspect that the navigation issue is related to that.
Any ideas on what could be causing the issue on Android?