title: Firebase Dynamic Links not deep linking with short URL on Custom tabs
body: <p>I've created some Firebase Dynamic Links in my application programmatically that are working fine when they are long ULRs, I mean, the default Dynamic Link that Firebase creates. If the user does not have the app installed, it opens the Play store and after installing the app it opens the deep link. In the other hand,if the user has the app installed, it opens directly the deep link.</p>
  
  <p>Well, after that, I've tried to create a short version of the Dynamic link because the URLs were to long and don't look "pretty" for the eye and to hide some info that was appearing in the link too.</p>
  
  <p>First, I did it using the Google URL shortener API because for that time Firebase did not have any service to do it programmatically. <a href="https://stackoverflow.com/a/38981853/3225016">Here</a> you can find my answer on how to create a short version using Google Shortener API. And after <a href="https://firebase.google.com/docs/dynamic-links/short-links" rel="nofollow noreferrer">Firebase released their service</a> I used too.</p>
  
  <p>Ok, so the problem is that the shorten link was created fine, until I discovered that if it is opened by a Custom Tab, like it does in Telegram, the deep link won't work. It always opens the app's Play store page directly into the custom tab, regardless of the user has the app installed or not and won't launch the deep link if the user has the app installed. Of course, if is not a custom tab it works fine.</p>
  
  <p>You can check the dynamic link created (check it on an Android device, otherwise the link won't open the play store or app due to the default URL is not avaialable yet): <a href="https://v73j2.app.goo.gl/gol2WmqeFwgrUapH3" rel="nofollow noreferrer">https://v73j2.app.goo.gl/gol2WmqeFwgrUapH3</a>
  and here is the map of the Dynamic Link that returns the Firebase service:
  <a href="https://v73j2.app.goo.gl/?link=https://www.holinapp.com/dl/?chatId%3D-KXqOOZ-817GnBm8q1Ep%26userId%3DYqx6IeYkQGgxO8fIezTahCi5CEj2&amp;apn=com.letsplanideas.holin&amp;d=1" rel="nofollow noreferrer">https://v73j2.app.goo.gl/?link=https://www.holinapp.com/dl/?chatId%3D-KXqOOZ-817GnBm8q1Ep%26userId%3DYqx6IeYkQGgxO8fIezTahCi5CEj2&amp;apn=com.letsplanideas.holin&amp;d=1</a></p>