react-native-branch-deep-linking-attribution icon indicating copy to clipboard operation
react-native-branch-deep-linking-attribution copied to clipboard

After installing app with deeplink app always have same data which is used before.

Open Akashdeep312 opened this issue 2 years ago • 1 comments

I've a send invite feature in which i invite coaches from agent account.

When i share a deeplink and user installs app from the link i'm able to get the referral code on sign up screen but when i revisit the same sign up screen then i always have the referral code.

i'm using the following code to read deeplink

 branch.subscribe(({error, params, uri}) => {
        if (error) {
          console.error('Error from Branch: ' + error);
          return;
        }
      });

      let lastParams = await branch.getLatestReferringParams(); 
      let installParams = await branch.getFirstReferringParams(); 
      if (lastParams.prop1 || installParams.prop1) {
        let refCode = lastParams.prop1 ? lastParams.prop1 : installParams.prop1;
        if (refCode !== ' ' || refCode !== '') {
          setReferralCode(refCode);
        }
      }

Akashdeep312 avatar Apr 20 '22 11:04 Akashdeep312

Hi @Akashdeep312 Could you provide the Branch logs for this so we can better understand. Please remove all PII information from the logs like your Branch API Key.

jf-branch avatar Apr 28 '22 13:04 jf-branch