Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48981

Cordova deeplinks: Is it possible to support both http and https url scheme?

$
0
0

I am using ionic native deeplinks plugin for cordova to get the deep links to work.
To add the cordova deeplinks plugin I used the following command:
cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=custom --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=abc.com
( Note: I have changed the host name while posting here )
Here, I have specified https as the value for deeplink_scheme variable.
I am able to access the links via https://abc.com/about and so on. But the http link does not work: http://abc.com/about

Is there any way by which http and https links work? Also, links with www does not work. For instance: http://www.abc.com/about

EXTRA INFO:
For the deeplinks routing in the app I am using the following standard code: (may not be relevant to my question)

this.deepLinks.route({ 
          '/about': '/about'
}).subscribe(
          match => {
            console.log('Successfully routed', match);
},
  nomatch => {
  console.log("Deeplink that didn't match", nomatch);
  });

I mainly want it to work with http and https. It’s nice-to-have it work with www also.

Thank you for your help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48981

Trending Articles