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.

zophop — Developer
7 Answer(s)
Answered on October 26, 2016.

Hi there!

A couple of questions to help narrow this down:

  1. Where in the signup/login process does your event get triggered? Is it before or after the user ID is assigned?
  2. If you users uninstall and then re-install, do they get the same ID or is a new one generated?
Branch — Developer
Answered on October 27, 2016.

Thanks for reverting back.

    1. Our event is triggered after randomly generated user id is assigned to the user .

 

2. If user uninstalls and re-installs the app, new user-id will be assigned to user.

 

zophop — Developer
Answered on October 27, 2016.

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.

Branch — Developer
Answered on October 28, 2016.

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..

 

zophop — Developer
Answered on November 1, 2016.

Hi

As per your suggestion , I removed setIdentity during branch setup process.

Now everytime when i install /re-install the app , fresh install is getting detected. (attaching branch dashboard screenshot for the same )

RE: Credits get credited every time app is installed

zophop — Developer
Commented on November 1, 2016.

Event  id 321959258266419602  and 321958138081511303 getting detected as the fresh install

zophop — Developer
Answered on November 1, 2016.

Hi there, apologies for the delay and this confusion. Let me try to clarify what you’re seeing:

  1. 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.
  2. Enabling debug mode will cause every reinstall to be recorded as an initial install. This is part of the intended functionality of debug mode.
  3. 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!

Branch — Developer
Answered on November 2, 2016.

Hi abauer..

It will be kind of you if you can please share  your skype credentials so we can schedule the call  and discuss over this issue.

Thanks

zophop — Developer
Commented on November 2, 2016.

Hi! You best option is to connect with our Integrations team. They will be able to better help you resolve this issue.

Branch — Developer