Linking.openUrl doesn't work for deeplink on Android

Please provide the following:

  1. SDK Version: 35.0.0
  2. Platforms(Android/iOS/web/all): Android

$ expo diagnostics

  Expo CLI 3.4.1 environment info:
      OS: macOS 10.14.5
      Shell: 5.3 - /bin/zsh
      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
      Xcode: 11.0/11A420a - /usr/bin/xcodebuild
      expo: ^35.0.0 => 35.0.0 
      react: 16.8.3 => 16.8.3 
      react-native: => 0.59.8 
      react-navigation: ^3.11.0 => 3.11.1 
      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: myapp://mymodel/123.
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, 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?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.