Unable to Implement "App Tracking Transparency" in MAUI for iOS #17188
Replies: 2 comments 2 replies
-
I solve it like this for my app when faced same problem as you: in Info.plist add key In Maui project root folder add folder interfaces and add interface IAppTrackingTransparencyService
In Platforms/iOS folder add AppTrackingTransparencyService.cs containing:
In MauiProgram.cs register interface only if device is iOS :
In App.xaml.cs inject created transparency tracking service ( if needed use pretprocessor directives "if IOS")
in same file override OnStart() method ( if needed use pretprocessor directives "if IOS")
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm transitioning an app from Xamarin to MAUI and I'm having difficulty implementing the "App Tracking Transparency" feature, which is essential for iOS apps. I've used the same method as I did in Xamarin, but it doesn't seem to work in MAUI. I've searched extensively, but I can't find documentation or guidance on how to properly incorporate this feature.
Has anyone else faced this issue? Is there a recommended approach or best practices to implement "App Tracking Transparency" in a MAUI app for iOS?
Any help or pointers in the right direction would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions