Ionic deeplinks


#1

Hi,

I cannot quite understand how the deeplinks works.

So I’ve defined in IonicModule.forRoot and it seems to update the address bar when using browser, then I installed ionic-plugin-deeplinks with a URL_SCHEME … let’s say blah. Then after reading the tutorial I put Deeplinks.routeWithNavController(…) inside ngAfterViewInit.

When I open the app either thru adb shell am start … blah://app/1 or click on a link blah://app/1 it just opens the app and not navigating to the requested path. After inspecting the emulator browser I see something like this for a match

Object {url: "blah://app/1", path: "/1", scheme: "blah", host: "app", extra: Object}

which obviously is wrong, if I try to open so phony host like blah://test.com/app/1 it seems to work as expected

here’s a snipper from AndroidManifest

    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="blah" />
    </intent-filter>

According to the docs/tutorial blah://app/1 should work, right ? Am I doing something wrong here.

Thanks