react-native-branch-deep-linking-attribution
react-native-branch-deep-linking-attribution copied to clipboard
After installing app with deeplink app always have same data which is used before.
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);
}
}
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.