Support idfa/adid for React Native app
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?
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.
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?
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.
There are multiple solutions for getting idfa/adid, Amplitude should just provide a method to set it into the user.
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.
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);