ionic-team / ionic-plugin-deeplinks

Handle deeplinks into your Ionic/Cordova apps from Universal Links, App Links, and Custom URL schemes. For those using Ionic 2, there are some nice goodies that make life easier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alternatives to .route()

slothentic opened this issue · comments

The plugin is working great, but I had to dig into the source to find what I needed, which was actually just to get the whole URL back.

It would be great if you could add some examples that are more generic, for example all I needed was:

 IonicDeeplink.onDeepLink((data) => {
            console.log(data);            
 });

Thank you! This is going to make integrating with React Router much easier

Is there any way to integrate with react ?

Is there any way to integrate with react ?

Yeah, use react-router and call history.push() in the onDeepLink callback