This plugin makes it easy to respond to deeplinks through custom URL schemes on iOS and Android.
WITHOUT: Universal/App Links
cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp
Fill in the appropriate values as shown below:
URL_SCHEME- the custom URL scheme you'd like to use for your app. This lets your app respond to links like
note: make sure to call IonicDeeplink from a platform.ready or
Using Ionic Native (available in 1.2.4 or greater):
If you're using Ionic 2, there is a convenience method to route automatically (see the simple Ionic 2 Deeplinks demo for an example):
Deeplinks;// Note: routeWithNavController returns an observable from Ionic Native so it *must* be subscribed to first in order to trigger.