ionic-plugin-deeplinks-cc
This plugin makes it easy to respond to deeplinks through custom URL schemes on iOS and Android.
WITHOUT: Universal/App Links
Installation
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 likemyapp://blah
Handling Deeplinks in JavaScript
Ionic/Angular 2
note: make sure to call IonicDeeplink from a platform.ready or deviceready
event
Using Ionic Native (available in 1.2.4 or greater):
; Deeplinks;
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.