Skip to main content

setAppsflyerID(AppsFlyerLib.getInstance().getAppsFlyerUID(context))

The source code above is used to set the AppsFlyer ID.

But it only works the first time. Consider the use case below:

  1. The user install the app and open it.
  2. The setAppsflyerID is executed, setting the ID to "AAA-AAA"
  3. The user uninstall the app
  4. The user install the app again
  5. The setAppsflyerID is executed, setting the ID to "BBB-BBB"

From now on, on AppsFlyer the user is "BBB-BBB", but since the set does not work on RC, it stays as "AAA-AAA", making any type of integration between platform impossible, because they are referring to different users.

 

Does anyone else have the same issue? For some reason is this the expected behavior? If so, what will happen for the use case I mentioned?

 

*The same behavior happens on Android and on iOS.

Hi! Could you share the project and app user ID where you are seeing this so that I can take a closer look on our end? You should be able to update the ID.


If you would rather not share the ID and project publicly, you can also create a private support ticket.


Thanks for the reply ​@wes_clark . I did create the support ticket.

 

But just to double check, from what you said, `setAppsflyerID` should always update the ID, correct?


Hey ​@tadeu-araujo-a86ede,

Yes, that’s correct! This should update attributes whenever you set a new value, though attributes only sync with RevenueCat servers at certain points (when Purchases.configure() is called, app backgrounded, and when purchases are made or restored). Is it possible that the new AppsFlyerID just had not synced yet?


Reply