# Deeplinking for hybrid apps

**URL:** <https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053>\
**Category:** Ionic Framework\
**Created:** [March 3, 2019, 9:26am UTC](https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053 "2019-03-03T09:26:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JerryBels](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jerrybels/32/7502_2.png) [@JerryBels](https://forum.ionicframework.com/u/JerryBels)\
**Post date:** [March 3, 2019, 9:26am UTC](https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053/1 "2019-03-03T09:26:13Z")

</div>

Hello,

Deeplinking in an Ionic hybrid app feels like something that should be really straightforward - but I really struggle to find an ideal solution.

- Official plugin [https://github.com/ionic-team/ionic-plugin-deeplinks](https://github.com/ionic-team/ionic-plugin-deeplinks) is said now to be “community maintained” - looking at the code and the issues tracker it seems really not maintained that well. I tried it and got a big bug ( [https://stackoverflow.com/questions/54936778/ionic-issue-with-prod-building](https://stackoverflow.com/questions/54936778/ionic-issue-with-prod-building) )

- On the github page, Ionic recommends another great solution : [https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking](https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking) but this one is part of something much bigger which I don’t need at all.

- Finally I found also [https://github.com/EddyVerbruggen/Custom-URL-scheme](https://github.com/EddyVerbruggen/Custom-URL-scheme) which seems to recommend [https://github.com/nordnet/cordova-universal-links-plugin](https://github.com/nordnet/cordova-universal-links-plugin) for deeplinking - that one being archived and not maintained anymore.

What solution would you recommend, and if it’s one of these three, how to overcome their flaws ?

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [March 3, 2019, 3:35pm UTC](https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053/2 "2019-03-03T15:35:47Z")

</div>

If your goal is to implement deeplinking, respectively providing one link to your users and potential users which link them to the corresponding stores and then forward parameters you would pass in the url when they have installed and started the app, I would recommend [branch.io](http://branch.io). I’m even not aware of any other solutions to properly implement such features.

As you said above, `ionic-plugin-deeplinks` is maintained by the community, so I don’t know the status there

`Custom-URL-scheme` isn’t properly a deep link solution. It could be use to start the app with an url like `yourapp://` but only once the users have installed it

---

<div class="post-metadata">

**Author:** ![JerryBels](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jerrybels/32/7502_2.png) [@JerryBels](https://forum.ionicframework.com/u/JerryBels)\
**Post date:** [March 3, 2019, 3:56pm UTC](https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053/3 "2019-03-03T15:56:27Z")

</div>

Hi 🙂

Well, as I said, the issue I find with [branch.io](http://branch.io) is that is seems a huge thing for not much, and also it’s a paying service if I understand their website well.

`ionic-plugin-deeplinks` as I said has me discovering a huge bug - can’t build with Android `--prod`.

Maybe I should explain myself better also : what I’m trying to accomplish is the following scenario :

- When the user receives a link ([www.myapp.com/res/1](http://www.myapp.com/res/1)), if the app is installed on his device, it should open the app directly with parameters.
- If the app is not installed, it opens the website - I would then show a prompt to try and have the user install the app, with a link to the app stores.
- When the user installs the app, forward the params coming from the original link (if possible - this is optional).

Except step 3, it seems like a pretty usual thing to me. Yet, oddly, I found it very difficult to find a good way to implement it.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [March 3, 2019, 4:28pm UTC](https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053/4 "2019-03-03T16:28:42Z")

</div>

Well what you are trying to accomplish is what [branch.io](http://branch.io) is meant for

If you found any other solutions or if someone as one, I would like to hear that, ping me

---

<div class="post-metadata">

**Author:** ![JerryBels](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jerrybels/32/7502_2.png) [@JerryBels](https://forum.ionicframework.com/u/JerryBels)\
**Post date:** [March 3, 2019, 5:08pm UTC](https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053/5 "2019-03-03T17:08:20Z")

</div>

Okay, so I looked a little deeper into [branch.io](http://branch.io). It seems quite nice, actually, and the free tier could be okay for a starter… But it’s still a very large solution. I simply have one, and only one, url pattern that should be shared and used the way I described earlier - and that’s for the foreseeable future as well. I think I will try to implement something using Eddy’s `Custom-URL-scheme` and some UX tricks on the browser’s side first. If it’s sufficient for our requirements, then all good. Otherwise, we’ll see - that is if I don’t find another solution till then.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [March 3, 2019, 5:42pm UTC](https://forum.ionicframework.com/t/deeplinking-for-hybrid-apps/158053/6 "2019-03-03T17:42:19Z")

</div>

As I said above, my understanding is that `Custom-URL-scheme` do not work as long as the app isn’t installed, therefore it only covers a part of the solution…but anyhow let me know what solution you will implement at the end, if you achieve your use case as described without [branch.io](http://branch.io) it will be definitely interesting
