Hello,
We have a kids app on the App Store which passes Apple review, most likely because we manually modify Unity iOS files that refer to the IDFA (devicesettings.mm, see this thread). With the latest versions of Unity, which we are using, Unity will remove all IDFA related code only if nothing in our code base has references to the listed methods. We somehow were still finding IDFA calls in our compiled xcode project, and couldn't find the source of the problem. So we kept modifying devicesettings.mm manually to pass Apple review.
We recently noticed that PlayFab is actually the culprit. If we remove the content of the PlayFabDeviceUtil.GetAdvertIdFromUnity method, IDFA related code is not present in the compiled project. You can see the test results at the end of this doc.
As you can see from the results, adding DISABLE_IDFA doesn't seem to do anything (and I can't find that pragma in the SDK code anyways). What's the current recommended way to make sure the playfab SDK doesn't include any reference to IDFA related unity code? Threads like these and the documentation seem outdated.
We're using Unity 2019.4, PlayfabSDK 2.87.200602
Thanks