Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi sorry for this post I just want to have some light regarding to iOS ATT #13

Open
eanjo7 opened this issue Feb 12, 2022 · 1 comment

Comments

@eanjo7
Copy link

eanjo7 commented Feb 12, 2022

Hi,

Im new to this and have 0 idea how this works, what I know is this plugin will have a popup on iOS devices asking

You want to be track or not.

But my question is Im using admob and unity ads or photon plugins
How can that plugins detect wether or not the user agree to track you or not
For example: Google ads will not show not relevant ads if you click do not track

Is is automatic?
How does it work

@Hi-Joe
Copy link

Hi-Joe commented Jun 13, 2022

You Just to do this to complete the ATT function required for ios auditing.
C# Code:

if UNITY_IOS
// Check the user's consent status.
// If the status is undetermined, display the request request:
if (ATTrackingStatusBinding.GetAuthorizationTrackingStatus() == ATTrackingStatusBinding.AuthorizationTrackingStatus.NOT_DETERMINED) {
ATTrackingStatusBinding.RequestAuthorizationTracking();
}
#endif

You need to check the status of ATTrackingStatusBinding.GetAuthorizationTrackingStatus() to determine if the user is allowed or not, but Apple only allows to ask the user once, until you uninstall and reinstall otherwise you can't continue the request

And Import this package
And in the xcode info options add Key:
NSUserTrackingUsageDescription
Value:Your data will be used to provide you a better and personalized ad experience.

This way you can normally pop up the ios system popup and ask the user if they are allowed to request IDFA for tracking purposes. As we all know, obtaining IDFA can increase the advertising cpm and ATT is a compliance function required by Apple, and there is no additional effect.

About you want to know how it works, you can google IDFA to find some information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants