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

iOS requestTrackingAuthorization #95

Open
crebuh opened this issue Jun 4, 2021 · 4 comments
Open

iOS requestTrackingAuthorization #95

crebuh opened this issue Jun 4, 2021 · 4 comments

Comments

@crebuh
Copy link

crebuh commented Jun 4, 2021

Hi Guys,

is there a way to trigger a permission request like it is possible for other permissions like location, notifications, camera etc.?

I added NSUserTrackingUsageDescription to my Info.plist file. But this is only the message which will be shown inside the request dialog.

According to Apple (https://developer.apple.com/documentation/apptrackingtransparency) there is a native method whichg is called requestTrackingAuthorization. But how can I trigger this method from my typescript code?

Currently I've build an own dialog using the capacitor dialog plugin and then I enable or disable Analytics with the setCollectionEnabled method according to the user input. Before that I'm not tracking anything. Seems legit to me, but I'm not sure If this works for Apple as well.

How can this be done correctly?

@aidanm1999
Copy link

This would be a great feature to implement. Do you know how we could go about doing this?

@crebuh
Copy link
Author

crebuh commented Nov 15, 2021

@aidanm1999

I went for this one in the meanwhile https://github.com/mahnuh/capacitor-plugin-app-tracking-transparency and combined it with the firebase-analytics plugin

@aidanm1999
Copy link

Thanks @crebuh! I'll check it out

@nijakobius
Copy link

@aidanm1999

I went for this one in the meanwhile https://github.com/mahnuh/capacitor-plugin-app-tracking-transparency and combined it with the firebase-analytics plugin

What exactly do you do when the user selects "Ask App Not to Track"?

There is no way to disable IDFA in runtime, right?

Instead, do you just completely disable the plugin via FirebaseAnalytics.disable();? Is that necessary?

...and won't that be too late since some sensitive data was already sent to Google?

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

3 participants