question

Francois Boucher-Genesse avatar image
Francois Boucher-Genesse asked

IDFA removal for kids apps

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

sdks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

Would you upgrade the Unity SDK to the latest 2.118 to see if this issue can be reproduced? If you have trouble in upgrading via Unity Extension, please download from our official repository PlayFab/UnitySDK: Unity C# SDKs for PlayFab (github.com)

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Francois Boucher-Genesse avatar image Francois Boucher-Genesse commented ·

Great - I just tried the latest version and it seems like all references to that API were removed. We didn't even need to add the pragma DISABLE_IDFA (probably worth updating the doc on that). Thanks!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.