Amplitude-JavaScript icon indicating copy to clipboard operation
Amplitude-JavaScript copied to clipboard

Support idfa/adid for React Native app

Open sysless opened this issue 6 years ago • 6 comments

Currently there is no way to send device's idfa/adid with this SDK.

This prevents us from using the Attribution API for our React Native app.

Is it possible to add an option for this? What alternatives do we have?

sysless avatar Feb 11 '20 12:02 sysless

I don't think we do at this point. If you can get adid/idfa yourself, then potentially you can set it into user properties.

However, I agree it should be support.

haoliu-amp avatar Feb 12 '20 23:02 haoliu-amp

I also need to send device's idfa/adid to integrate appsflyer with Amplitude. I've added the fields to user properties but the events from appsflyer are still not logged.

According to this - https://help.amplitude.com/hc/en-us/articles/204771838-Attribution-API the adid/idfa need to be outside user properties, and not inside it. Is there any way to achieve that?

baraklevy20 avatar Feb 16 '20 15:02 baraklevy20

Is the complexity in getting the idfa/adid or in attaching it to a request https://github.com/ptomasroos/react-native-idfa

There are libraries that can be used to retrieve it.

alexmbp avatar Mar 03 '20 17:03 alexmbp

There are multiple solutions for getting idfa/adid, Amplitude should just provide a method to set it into the user.

sysless avatar Mar 03 '20 17:03 sysless

I haven't looked into if there're other libraries to support it, we just did it for Flutter SDK and it's not trivial which includes a quite a lot testing and edge cases. However, we agree that we will work on this ASAP.

haoliu-amp avatar Mar 03 '20 18:03 haoliu-amp

Is it mandatory to provide idfa/idfv/adid ? Or does Amplitude user matching will work if I set:

const userId = MY_APP_USER_ID;
Amplitude.getInstance().setUserId(userId);
AppsFlyer.setCustomerUserId(userId);

AlanKeiss avatar Apr 01 '20 13:04 AlanKeiss