question

Paul-9359 avatar image
0 Votes"
Paul-9359 asked RobCaplan edited

Xamarin.Forms - How to check if my app uses the Advertising Identifier (IDFA)?

Hi everyone, I'm using Xamarin.Forms.

For iOS app, how to check whether it uses IDFA? I'm about to submit the app for Apple Review in App Store Connect.

For native iOS project (xCode), there were some commands to run like grep. How to check this in Xamarin project?

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ColeXia-MSFT avatar image
1 Vote"
ColeXia-MSFT answered HinesVaughan-7450 commented

Hello,

Welcome to Microsoft Q&A!

Try grep -lr "ASIdentifierManager" * , the search may return a result saying that ASIdentifierManager was found in both the 32 bit and 64 bit versions of Xamarin.iOS.dll.

However , please ignore it , the Xamarin library API references the ad API but the apps aren't actually calling it they are ok and aren't counted as using IDFA.

So if you don't use any ad APIs , there is no warry .


Thank you.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi ColeX, thanks. May I know in which file path I should run the grep command you mentioned in your answer?

0 Votes 0 ·

By default some Analytics/Ad SDKs call the Ad API to get the IDFA, in this case, is there a way to exclude this Ad API from Xamarin.iOS.dll using Linker or any other ways so that my app does not use IDFA. Because Firebase Analytics Xamarin SDK does not have any configuration to disable IDFA in code, but its docs says that if my app doesnot link the AdSupport API then it will not call the Ad API to access the IDFA.

If you know how to do this, please answer this question here - https://docs.microsoft.com/en-us/answers/questions/232322/disable-firebase-analytics-from-accessing-idfa.html

Thanks a lot :)

0 Votes 0 ·

First access into ipa folder and then use grep.

cd YOURAPP.ipa
grep -lr "ASIdentifierManager" *


Check https://forums.xamarin.com/discussion/184967/ios-app-rejected-by-apple-not-getting-the-packages-that-uses-uiwebview-while-using-grep-r-uiwebv .

0 Votes 0 ·

Thank you for the info. How do we handle libraries (such as Firebase Analytics) using the advertising ID if the AdSupport.framework is linked? Because Xamarin always links that framework, there appears to be now way to prevent Firebase Analytics from not using it, that I have been able to find.

Do we have a way to prevent Xamarin.iOS from including that framework or maybe a way to link it out of the final IPA during app creation?

0 Votes 0 ·