deniza / app_tracking_transparency

A Flutter plugin to show ios 14+ tracking authorization dialog.
https://pub.dev/packages/app_tracking_transparency/
MIT License
83 stars 28 forks source link

macOS support #37

Open tmarzeion opened 1 year ago

tmarzeion commented 1 year ago

Hey! 👋

The App I am currently working on needs to display ATT consent on macOS App built by Flutter.

I've noticed that ATTrackingManager is supporting macOS 11.0+ (https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager)

I've tried to extend this plugin to support macOS, but unfortunately requestTrackingAuthorization() returns AuthorizationStatus.notDetermined without displaying any dialog.

I have no clue why dialog is not showing up. ATTrackingManager API is designed poorly, there are no error logs, no exceptions, just AuthorizationStatus.notDetermined :/

Maybe you (or anyone who tries to extend this plugin to support macOS in the future) will be able to find out what's wrong? There is my macOS support commit from my fork: https://github.com/deniza/app_tracking_transparency/commit/5d8c777657d4aaab6de90891655bc473822e9217

Any feedback will be really appreciated, cheers!

venkata-reddy-dev commented 4 months ago

+1