How to Setup Universal Links in Ionic (iOS & Android)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.พ. 2020
  • Ever wondered how some web links automatically open the installed apps? Learn to add universal links to your Ionic app to directly open your app through links!
    🔥Learn Ionic faster with the Ionic Academy: ionicacademy.com/
    💎 Get the Built with Ionic Book: builtwithionic.com/
    🎉 Get my Practical Ionic Book: devdactic.com/practical-ionic/
    #############################
    👨‍💻Want to read instead of watch?
    Here's the full Ionic tutorial: devdactic.com/universal-links...
    🤷‍♂️Want more Ionic tutorials?
    There you go: devdactic.com/
    ⚡️Take my 7 Day Ionic 4 Crash Course
    ionicacademy.com/ionic-crash-...
    #############################
    ❤️You can also find me...
    on / simongrimm_
    on / schlimmson
    on / devdactic
    #############################
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 101

  • @LuckystrikeGFXer
    @LuckystrikeGFXer 4 ปีที่แล้ว +1

    Was looking for when you come around doing this tutorial! Thank you for doing it so quickly!

  • @sworf1sh
    @sworf1sh 4 ปีที่แล้ว +1

    Hey Simon, great Video! Thank's a lot. I wanted to mention that I had to change the internalPath to this to get it work. Maybe I'm doing it completly wrong, but at least it's working.
    const internalPath = `/${match.$link.path}`;
    I love your videos! Greetings from Argentina!

  • @xn279
    @xn279 3 ปีที่แล้ว

    thank you so much Simon, u help me a lot for my final thesis with your Ionic content! love from Indonesia :D

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว

      Happy to hear that Jonathan!

  • @hannesg.3586
    @hannesg.3586 4 ปีที่แล้ว +1

    Thanks. Just what I need right now. 😀

  • @tahirzaib5718
    @tahirzaib5718 3 ปีที่แล้ว +1

    thank you so much really very helpful and worked Superb!

  • @joshglogau
    @joshglogau 3 ปีที่แล้ว +1

    helped me a ton, thank you!

  • @robcast89
    @robcast89 4 ปีที่แล้ว +1

    excellent tutorial, what I was looking for and it worked perfectly 👍

  • @SantiagoRamirez-hw9ug
    @SantiagoRamirez-hw9ug 2 ปีที่แล้ว

    Great tutorial Simon, i have a problem with a depp link, when internal page app is opened from link, the page loads correctly but the menu that is located at the bottom dissapears

  • @midilajmuhammed2798
    @midilajmuhammed2798 หลายเดือนก่อน

    Hey simon
    If app is not installed what will happen?
    and if that case can i route to play or app stores ?

  • @freddo1kenobi713
    @freddo1kenobi713 3 ปีที่แล้ว +1

    Great content! Could you perhaps provide some timestamps for your future videos when you are talking about android/IOS specific details? In my current project I am for example only interested in IOS and it's a bit of a hassle to try find where you start with that.

  • @Snugglelol
    @Snugglelol 4 ปีที่แล้ว

    the command to test works, but when I click on the link through Whatsapp or notes the website opens normally any solution?

  • @japanfigs8063
    @japanfigs8063 4 ปีที่แล้ว +13

    Can you create a tutorial about WebRTC + Streaming connexion ?

  • @lucaspubg2024
    @lucaspubg2024 4 ปีที่แล้ว

    exists how to the get a link with firebase dynamic link?

  • @TheMikesitox
    @TheMikesitox 4 ปีที่แล้ว

    Hello Simon, i have a question, i'm trying to make my app jump to ios/android app setting, I.E: my app use gps location if detect the app block the access to gps then it shows an alert asking to enable it. Here is when my app need to take my to the app settings directly to allow gps access. I've seen this behavior in other apps but i don't know how to do it in ionic. Can you give me a hint?

    • @galaxies_dev
      @galaxies_dev  4 ปีที่แล้ว

      There is actually a plugin for this: ionicframework.com/docs/native/open-native-settings

  • @amroeloks8745
    @amroeloks8745 2 ปีที่แล้ว

    Hey Simon , can this be tested from a simulator or do I have to have the build on my device in order to test universal links on iOS?

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว +1

      Hmm I think it should actually also work from the simulator!

  • @kavirajpoojary1854
    @kavirajpoojary1854 3 ปีที่แล้ว

    Can I use http and put my assetlink in http domain?

  • @faysalahmed2056
    @faysalahmed2056 2 ปีที่แล้ว

    Any plugins are available sip? I had tried but not found any compatible sip plugin for Capacitor. Would you please help me?

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว

      You don't really need any plugin for this, you can just catch the openUrl with the Capacitor "App" plugin - the rest is configuration of the app and your server!

  • @Lily-pv4iu
    @Lily-pv4iu 4 ปีที่แล้ว

    If one app launch another app, do we need to configure the universal links for iOS and app links for android?

    • @galaxies_dev
      @galaxies_dev  4 ปีที่แล้ว

      In that case you would only need deeplinks, which might be a bit easier than universal links since you don't need domain validation in that cas!

  • @endyz4798
    @endyz4798 4 ปีที่แล้ว

    Hey Simon , When I use the command test, the app can be opened, but I click on the url, the app does not respond(ionic3)

    • @endyz4798
      @endyz4798 4 ปีที่แล้ว

      .well-known/assetlinks.json is normal

  • @alihdieb8055
    @alihdieb8055 ปีที่แล้ว

    Thanks for the great content i got an iis server how can i config that to pass the serve issue any one can help please ?

  • @tonyross2947
    @tonyross2947 3 ปีที่แล้ว

    Simon, would this methodology be the best way to switch between two apps? So, having one app able to "start" a 2nd app and then the 2nd app able to return control to the first app?

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว +1

      Yes it would! In the past you could simply use a URL scheme (or still can I guess) but universal link is safer and yes, that is the way!

    • @tonyross2947
      @tonyross2947 3 ปีที่แล้ว

      @@galaxies_dev I've emailed you about something Simon; sent it on Monday 18th. Could you reply to me please, even if you cannot help.

  • @sudhakarvenkatraman4432
    @sudhakarvenkatraman4432 2 ปีที่แล้ว

    Thanks for the excellent tutorial, Simon. Will universal links work even without publishing the app to store(both andorid and ios)?

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว

      If you app is not on the store, how should a user install it? And no I'm not sure if it would work in such a case!

    • @sudhakarvenkatraman4432
      @sudhakarvenkatraman4432 2 ปีที่แล้ว

      @@galaxies_dev We'll be generating the signed app and update the app catalog in our website so user can download the app from catalog and install it. In your tutorial, you developed and tested the android app locally, right?

  • @ttbooster
    @ttbooster 3 ปีที่แล้ว

    Cool advanced video. I am specifically looking for a safe way to invite other users to my app. The people invited will have access to add content to the inviters account. Hence, invite links must have a limited duration, limited times of use, dedicated to the person invited and no one else, etc. Or in brief, a sensitive invite link. Is it possible to use this technology for this purpose?
    I'm fully set up with Firebase for reference.

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว +1

      I'm actually not sure how I would handle it, but perhaps you could use callable cloud functions to verify a link that users used to open the app and check for a timestamp (that you added to the URL) to see if it's still valid and only then continue with your action!

  • @soulaimanebouderna6926
    @soulaimanebouderna6926 4 ปีที่แล้ว

    i have a problem can you help me SQlite only works on installation, if I close the app stops working
    in emulator and device

  • @AyubIdrees
    @AyubIdrees 2 ปีที่แล้ว

    Thank you for the tutorial, it helps me a lot. I've a question related to deeplink is that when I call router.navigateByUrl() in zone then sometimes page open properly but most of the time page got closed after opening. Can you help ?

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว

      I'm not 100% sure about this but maybe yo u need to inject NgZone and run the router call in the run() function!

    • @AyubIdrees
      @AyubIdrees 2 ปีที่แล้ว

      @@galaxies_dev Yes i'm doing the same thing as you mentioned in tutorial and also in reply and it's working but most of the time page appear and went away by just showing glimpse.

  • @yulius8568
    @yulius8568 3 ปีที่แล้ว

    Soory for asking i try to use link in browser but the app doesnt want to open..is there any sollution for my case ?

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว

      Could be a lot of different things :/ Did you add the verification files to your domain, served with HTTPS?

  • @user-zi3gc2pg5s
    @user-zi3gc2pg5s 3 ปีที่แล้ว

    thanks a lot for great tutorial, Could you please tell me is there a backend setup ? you talked about php and ionic protocol

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว +1

      To verify your universal link you have to upload a file to your hosting, but you don't need a specific backend setup or anything related to php!

    • @user-zi3gc2pg5s
      @user-zi3gc2pg5s 3 ปีที่แล้ว

      @@galaxies_dev ok thank you very much

  • @shaneakins515
    @shaneakins515 ปีที่แล้ว

    Great vid - thanks for sharing. Any chance of doing a variant of this for React?

    • @galaxies_dev
      @galaxies_dev  ปีที่แล้ว

      Yeah can do one in the future, but the setup outside will be 100% the same, only Ionic part changes slightly!

  • @saq.ib01
    @saq.ib01 2 ปีที่แล้ว

    Same tutorial for Capacitor required. i have almost integrated this and it is working fine on Whatsapp, Gmail.. but app not opening from twitter, facebook etc.

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว +1

      Yeah that's on my list!

  • @abbas_hashmat
    @abbas_hashmat 3 ปีที่แล้ว

    Hello sir, in My domain i didn't find any /etc/appache2/site-available/default-ssl.conf
    Can you help me with sir. Its around 2 days and i am still stuck there and the rest is all good.
    Thanks in advance

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว

      Then you might have a different hosting engine, just look it up and see where you can find the SSL config!

  • @vhpupuyoh
    @vhpupuyoh 2 ปีที่แล้ว

    How do you configure all variables you used (URL_SCHEME, DEEPLINK_SCHEME, DEEPLINK_HOST) with capacitor?

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว +1

      I'm not sure if you actually have to - I'll work on a Capacitor version for the next time!

    • @vhpupuyoh
      @vhpupuyoh 2 ปีที่แล้ว

      @@galaxies_dev Thanks Simon. BTW, the formal capacitor site send link to your blog. Respect

  • @Marshall86MT
    @Marshall86MT 2 ปีที่แล้ว

    Hey Simon! do you have a good tutorial for firebase dynamic links integration on Ionic? thanks

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว +1

      No not yet :/

    • @Marshall86MT
      @Marshall86MT 2 ปีที่แล้ว

      @@galaxies_dev replied on Facebook group 😊

  • @mohamedthanveer2576
    @mohamedthanveer2576 4 ปีที่แล้ว

    Please release tutorial for fire base dynamic links .

  • @Toucd
    @Toucd 3 ปีที่แล้ว

    what happens if app is not installed? it will go to the store?

  • @tonyross2947
    @tonyross2947 3 ปีที่แล้ว

    I love everything that you teach us, Simon. But I find that you go through things at such speed; I find it very hard to follow you when you do that! Must be getting old... LOL!

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว +1

      It's a tough challenge - I want to explain everything with enough details, and some people don't want long videos :/ Any ideas how that could be balanced?

    • @tonyross2947
      @tonyross2947 3 ปีที่แล้ว

      @@galaxies_dev I understand that problem. Maybe split a bigger topic up into smaller videos, so "How to Setup Universal Links in Ionic (iOS & Android) #1" and "How to Setup Universal Links in Ionic (iOS & Android) #2", etc.?

  • @alirazali4753
    @alirazali4753 4 ปีที่แล้ว

    Hey Simon, can you do this tutorial with firebase dynamic links ? thank you

    • @galaxies_dev
      @galaxies_dev  4 ปีที่แล้ว +2

      Not sure how it works but yeah that topic is on my list as well!

  • @terrywindwalker5397
    @terrywindwalker5397 2 ปีที่แล้ว

    How does it work when the app is not installed? Would users be sent to the app store page?

    • @galaxies_dev
      @galaxies_dev  2 ปีที่แล้ว +1

      No, this only works when the app is installed. There are other services that allow you to generate such a custom link that checks if an app is installed I think!
      Especially Branch comes to mind: help.branch.io/developers-hub/docs/cordova-phonegap-ionic

  • @umashankarsaw2635
    @umashankarsaw2635 3 ปีที่แล้ว

    Not working for me always go in nomatch block any hints

  • @spacearcade8766
    @spacearcade8766 ปีที่แล้ว

    if the app is not installed will it navigate to play and app store?

    • @galaxies_dev
      @galaxies_dev  11 หลายเดือนก่อน +1

      No, that would be something special you'd have to implement yourself or use a service for!

  • @phalsopha5239
    @phalsopha5239 4 ปีที่แล้ว

    i try biuld ionic to APK using cordova never success😌 can u make simple for me ? please

    • @ganeshacharya234
      @ganeshacharya234 4 ปีที่แล้ว +1

      just run "ionic cordova build android" from inside the project, that should create a debug apk which you can then manually move to your android device.

  • @mizanrehman1707
    @mizanrehman1707 3 ปีที่แล้ว

    Thanks for the tutorial.
    i m stucked on ios app . can you please tell me how to open specific page in my ionic app from another app like whatsapp

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว

      You can check the route inside the block which catches the link data in the beginning and then perform some manual routing to a page!

    • @marcoromero3095
      @marcoromero3095 3 ปีที่แล้ว

      Hello Mizan, did you find a solution?

  • @alimajrashi9441
    @alimajrashi9441 4 ปีที่แล้ว +3

    Many cordova videos lately 😢 did you abandon capacitor?

    • @galaxies_dev
      @galaxies_dev  4 ปีที่แล้ว

      No I'm more into it than ever :)

  • @flonmackenzie2876
    @flonmackenzie2876 3 ปีที่แล้ว

    How can we get it to not ask whether to open in the app or browser the first time?

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว

      I think that's an OS default setting?

  • @cyrilvabraham
    @cyrilvabraham 3 ปีที่แล้ว

    Will it work on ionic capacitor ...

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว

      Yes you can also use deeplinks with Capacitor!

  • @sagarchaure2261
    @sagarchaure2261 3 ปีที่แล้ว

    How to navigate to Google Play store or Apple app store if app is not installed on device?

    • @galaxies_dev
      @galaxies_dev  3 ปีที่แล้ว +1

      Hmm that's actually a bit different then, I'm actually not sure if it's easily possible to check that from the web directly :/

    • @victorhugoalvaerezperez1992
      @victorhugoalvaerezperez1992 3 ปีที่แล้ว

      I have done it with branch.io

  • @ayoubbelouati5941
    @ayoubbelouati5941 4 ปีที่แล้ว

    First comment 👍

  • @sobrius25
    @sobrius25 4 ปีที่แล้ว

    Attention: this tutorial will NOT work on iOs if you are using Capacitor, you need to use Capacitor's implementation!

    • @galaxies_dev
      @galaxies_dev  4 ปีที่แล้ว

      What exactly do you mean? I tested everything with Capacitor and it works fine on both platforms!

    • @sobrius25
      @sobrius25 4 ปีที่แล้ว

      @@galaxies_devCapacitor bypasses the Cordova plugin on iOs and does not send the start url to it. Instead, we can use Capacitor's own method getLaunchUrl() to fetch it and apply our business logic in our app.component. This was my experience 2 months ago. Maybe things have changed now

  • @user-bt8lz6jj4t
    @user-bt8lz6jj4t ปีที่แล้ว

    that lesson not informative