luisfcofv / react-native-deep-linking

Simple route-matching library to handle deep links
MIT License
247 stars 23 forks source link

Query params Deep link not working #55

Open harshal311989 opened 2 years ago

harshal311989 commented 2 years ago

Hi team , I am using this plugin for deeplink in my application my deeplink url as below https://my.domain.com/services/auth/v1/unlock-account?token=1234

I set scheme and host in android as below

<data android:scheme="https" android:host="my.domain.com"/>

I write code in react native side as below

function addUnlockAccountRoute() {

    DeepLinking.addRoute('/services/auth/v1/unlock-account/:token', ({scheme, path, token}) => {
        console.log('unlock_account_deeplink_response_schema', scheme);
        console.log('unlock_account_deeplink_response_path', path);
        console.log('unlock_account_deeplink_response_token', token);

    });
  }

When i try to run above code route not found means i am not able to get value scheme, path and token value because my deep link URL includes query parmas like ?token=1234 so can you tell me how i can resolve this?