Deeplink with routeWithNavController


#1

I’m trying to use Deeplink’s routeWithNavController method:

Deeplinks.routeWithNavController(this.nav, {
  'login': Login,
  'loggedhome': LoggedHome
})
.subscribe( match => {
  console.log(match)
  },
    nomatch => {
    console.log(nomatch)
  }
)

but this does not run in the browser (ionic serve).

plugin.js:33 Native: tried calling Deeplinks.routeWithNavController, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

Does anyone know if it is possible to run in the browser?

 ionic info
--------------------------------
--------------------------------

Your system information:

Cordova CLI: 6.3.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.39
OS: Distributor ID:	Ubuntu Description:	Ubuntu 16.04.1 LTS 
Node Version: v6.4.0

#2

Were you able to make any progress in this area? I am trying to get a regular web app to work with URL paths as well, without success. No one has answered my questions, either.


#3

I have this working currently. What is the issue you are running into?


#4

Turns out it was the tabs that was the problem. It doesn’t appear to work with tabs.


#5

@alexthebuilder how did you managed to get it working?

I’ve just asked a question - How to use DeepLinker in browser? - can’t find any information on how it should be configured to make it work in browser :frowning: