Deeplink with Ionic [Android]

How will the Device know to Open the Link in a Particular App?

npm install @ionic-native/deeplinks
ionic cordova plugin add ionic-plugin-deeplinks
--variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable
  1. URL_SCHEME: Its basically can be anything you want in order to identify your Application.
  2. DEEPLINK_SCHEME: Its the protocol. Better leave it as ‘https’.
  3. DEEPLINK_HOST: Its the HOST URL to identify when to open the App.
Plugin with Variables added to Package file

How to get Arguments Passed in the URL/Link?

Code Snippet to read the URL
'/:accounttype/some-url/:roomid': nothing
match.$route - the route we matched, which is the matched entry from the arguments to route()match.$args - the args passed in the linkmatch.$link - the full link data

I am using Ionic 4 here. There might be some version mismatch though. Feel free to connect with your issues.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rajesh Mishra

Rajesh Mishra


A coder by profession, sharing life experiences with the Words. Learning more about Productivity, Habits, Decision Making and ambitious towards self freedom.