hypery2k/nativescript-urlhandler

Empty params

panagulis72 opened this issue · 1 comments

I'm catching the following link: https://myapp.it/test/redirectPage.html?itemType='xxx' with the following code:
handleOpenURL((appURL: AppURL) => { console.log(JSON.stringify(appURL.params['itemType'])); });

but params is an empty object, and appURL.path doesn't contain the params (it is: myapp.it/test/redirectPage.html)

This is AndroidManifest configuration:

<data android:scheme="https" android:host="myapp.test.com" android:pathPrefix="/manager" />

Solution found. It is a map, so I have to use the following method:
appURL.params.get('itemType')