com.dwm.it.plugin.deeplink

1.0.2 • Public • Published

Description

This plugin is a fusion of cordova-plugin-deeplinks and cordova-plugin-browsertab.

The plugin is used to operate a redirection via browserTab on a deeplink.

Usage

BrowserTab

public close() {
 (<any>window).DeeplinkPlugin.close();
}

private _open(url: string) {
 (<any>window).DeeplinkPlugin.openUrl(url);
}

Deeplink

const routes = {
    '/callback': 'KeycloakController',
    '/callback-logout': 'KeycloakController',
    'profile': 'ProfilePage',
    'my-orders': 'OrdersPage',
};
(<any>window).DeeplinkPlugin.route(routes,
    (match) => {
        console.log('DEEPLINKS MATCH !!', match);
    },
    (nomatch) => {
        console.error('Got a deeplink that didn\'t match', nomatch);
    }
);

Package Sidebar

Install

npm i com.dwm.it.plugin.deeplink

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

58.4 kB

Total Files

18

Last publish

Collaborators

  • lhommetn