hypery2k / nativescript-urlhandler

NativeScript URL Handler Plugin
MIT License
52 stars 34 forks source link

Empty params #90

Closed panagulis72 closed 5 years ago

panagulis72 commented 5 years ago

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" />

panagulis72 commented 5 years ago

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