Credits get credited every time app is installed
We are running a referral campaign in which we want to give credits only once after event is fired. But we dont want to give credits on re-install. We have set referral rule to give credits only for the first time We are assigning dynamic user-id after every install . In our case, everytime user install the app he is getting credited.
Ahhh, yes here is the issue. Even though this is the same device, since you are specifically assigning different IDs, our system assumes you intend this to be treated as a new user who is eligible for the credit again. If you were not assigning IDs, or were assigning the same ID after re-install, this would be handled as you expect.
Since you are assigning new IDs for each install, what you need to do is check for the +is_first_session parameter in the link data. If this is true, the user has just installed for the very first time and you can award the credits. If this is false, don’t award the credits.
The problem which we are facing that while opening the app for first time during fresh installation, sometimes”+is_first_session” returns false..
(For eg:- When internet is not available during opening app for first time)
Using test mode to emulate the fresh installaion..
<meta-data android:name="io.branch.sdk.TestMode" android:value="true" /> and using test key. Please look into this issue asap..
Hi there, apologies for the delay and this confusion. Let me try to clarify what you’re seeing:
- A server callback is necessary to determine if our system has seen a device in the past, so +is_first_session will be false if there is no network connection.
- Enabling debug mode will cause every reinstall to be recorded as an initial install. This is part of the intended functionality of debug mode.
- My recommendation was not to remove the setIdentity call. Simply be aware that if you are setting different IDs for the same device and not checking for duplicates first, this will mess with the crediting system.
Hope this helps!