# Open external app with uri scheme using Deeplinks

**URL:** <https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127>\
**Category:** ionic-v3\
**Created:** [January 13, 2018, 1:12pm UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127 "2018-01-13T13:12:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paat](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Paat](https://forum.ionicframework.com/u/Paat)\
**Post date:** [January 13, 2018, 1:12pm UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/1 "2018-01-13T13:12:57Z")

</div>

Hello there,

I have two apps the first and the second. I want to run second app via deeplink with some params from the first app.  
Ionic 3.19, cordova 8.0.0, android application. Unfortunately app is not opening when I am using link shown in example.

Example:

```auto
openApp() {
       window.open("secondApp://myserver.com/?param1=111&param2=222", "_system");
}

```

And external app deeplinking config:

in home.ts (or app.component.ts, no difference):

```auto
  platform.ready().then(
        () => {
          this.deeplinks.route({
            '/': {}
          }).subscribe((match) => {
      
      
            let alert = this.alertCtrl.create();
            alert.setTitle('App opened from deeplink!');
            alert.setMessage(match.$args.param1+ " : " + match.$args.param2);
            alert.addButton('Ok');
            alert.present();
      
            this.receivedData = {
              param1: match.$args.param1,
              param2: match.$args.param2
            }
      
          }, (nomatch) => {
            this.receivedData = {
              param1: 'no data',
              param2: 'noData'
            };
            console.error('Got a deeplink that didn\'t match', nomatch);
          });
      
        });

```

package.json

```auto
    "plugins": {
      "ionic-plugin-deeplinks": {
        "URL_SCHEME": "secondApp",
        "DEEPLINK_SCHEME": "https",
        "DEEPLINK_HOST": "myserver.com",
        "ANDROID_PATH_PREFIX": "/"
      }

```

config.xml:

```auto
 <plugin name="ionic-plugin-deeplinks" spec="1.0.0">
        <variable name="URL_SCHEME" value="secondApp" />
        <variable name="DEEPLINK_SCHEME" value="https" />
        <variable name="DEEPLINK_HOST" value="myserver.com" />
        <variable name="ANDROID_PATH_PREFIX" value="/" />
    </plugin>

```

Could it be problem with ionic version, or I’ve made some errror? I’ve tried tons of combinations with it 😕

Thanks for response.

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [January 13, 2018, 1:46pm UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/2 "2018-01-13T13:46:42Z")

</div>

try this plugin for opening the link [https://ionicframework.com/docs/native/in-app-browser/](https://ionicframework.com/docs/native/in-app-browser/)

---

<div class="post-metadata">

**Author:** ![Paat](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Paat](https://forum.ionicframework.com/u/Paat)\
**Post date:** [January 15, 2018, 10:33pm UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/3 "2018-01-15T22:33:48Z")

</div>

Unfortunately this plugin is adding “http” before “secondApp” uri scheme and opens this link in the browser, not the actual app

---

<div class="post-metadata">

**Author:** ![Horkane](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Horkane](https://forum.ionicframework.com/u/Horkane)\
**Post date:** [June 4, 2018, 7:27am UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/4 "2018-06-04T07:27:39Z")

</div>

Hi @Paat , I’m trying to do the same as you. Opening an external app who’s mine.

I’ve tried deeplink and [startapp](https://github.com/lampaa/com.lampa.startapp) but nothing is working.

Did you found any solutions or workaround ?

---

<div class="post-metadata">

**Author:** ![PappJulioNicolas](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@PappJulioNicolas](https://forum.ionicframework.com/u/PappJulioNicolas)\
**Post date:** [January 24, 2020, 5:44pm UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/5 "2020-01-24T17:44:19Z")

</div>

Same problem here, i can’t found a solution

Any workaround to solve?

---

<div class="post-metadata">

**Author:** ![vasanthb](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vasanthb](https://forum.ionicframework.com/u/vasanthb)\
**Post date:** [June 17, 2020, 9:26am UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/6 "2020-06-17T09:26:28Z")

</div>

Still you haven’t found any solution ? I have two apps and open one app from another.

---

<div class="post-metadata">

**Author:** ![PappJulioNicolas](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@PappJulioNicolas](https://forum.ionicframework.com/u/PappJulioNicolas)\
**Post date:** [July 1, 2020, 1:20pm UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/7 "2020-07-01T13:20:04Z")

</div>

Hello! Yes, there is a Solution you need to change \*-info.plist adding this (I do on xCode, but i think you can change in the code): Add a new row on .plist, next you need to write “URL Types”, add new row again, write or find URL Schemes, add new row, and to finish up you need to write the identifier of the apps you need to open.

If you don’t understand something, tell me pls.

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/0/1/01e2801eed589528b339375308525da8b3d5c89c.jpeg)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 8:54pm UTC](https://forum.ionicframework.com/t/open-external-app-with-uri-scheme-using-deeplinks/118127/8 "2021-07-19T20:54:29Z")

</div>

Closed on July 19, 2021, 8:54pm UTC


