Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Handle deep links with multiple environments for the same app on iOs using react-native

$
0
0

I have a react-native app with multiple environments.

Dev, prod, ... Which means that I have multiple 'copies' of the app installed on the phone App Dev, App Prod.

These are under a different bundle identifier:

  • com.myapp.dev
  • com.myapp.prod

I use deep links to open the app, this works perfect on Android because it asks with which app you want to open it, but on iOS it just opens the first app that founds installed 😞 and i can't find the way to, for example:

  • Launch develop-app://whatever/1 and open it in the Dev app
  • Launch prod-app://whatever/1 and open it in the Prod app

What am i missing?

This are my defined url types:

enter image description here

Also the apple-app-site-association file looks like this:

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "1234.com.myapp.dev",
                "paths": ["*"]
            },
            {
                "appID": "1234.com.myapp.prod",
                "paths": ["*"]
            },
        ]
    }
}

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>