Issue with Flutter AppsFlyer SDK integration: ADClientErrorTrackingRestrictedOrDenied

I am integrating the sdk in my flutter project to work with an android and iOS apps, for android I didn’t find yet any issue on doing it. However, for iOS it’s necessary an additional step for displaying to users apple’s tracking authorization dialog for iOS 14+. My issue is that AppsFlyer SDK is not reading correctly this authorization status, the SDK is initialized always with this status as “not determined” or “denied”. So my tracked data is not appearing in AppsFlyer dashboard because of this issue, so here are the correct flow (what should happen) and the flow I am having (what is happening on my ending) detailed:

Happy flow (what should happen):
1 – Open app.

2 – Display apple’s tracking authorization.

3 – Accept tracking.

4 – AppsFlyer SDK initialize with tracking status as: 2 – “authorized”.

5 – AppsFlyer SDK send events with no errors, and data be reflected on Dashboard correctly.

Current flow with the issue:

1 – Open app.

2 – Display apple’s tracking authorization.

3 – Accept tracking.

4 – AppsFlyer SDK initialize with tracking status as: 0 – “notDetermined” or 3 – “denied”.

5 – AppsFlyer SDK send events with errors, and data is not reflected on Dashboard (since for the SDK, user’s apparently did not authorize tracking).

Here you can find a personal fork of your example project with the code for displaying apple’s tracking authorization dialog: https://github.com/Themakew/appsflyer-flutter-plugin. What I did was basically setup the project to run the iOS app and add all necessary code to display tracking’s alert.

What is happening on my end:

After step 2, I can in the Xcode console log from AppsFlyer SDK that shows that is considering tracking status as “0” and later “3”:

[com.appsflyer.serial] [ATT] Tracking authorization update from oldStatus: -255 to newStatus: 0

[com.appsflyer.serial] [ATT] Tracking authorization update from oldStatus: 0 to newStatus: 3

And in VSCode flutter logs, ATT status is:

[log] ATT status: TrackingStatus.authorized

After step 3, logs shows that when SDK is sending a API request, payload is considering as well ATT status as denied or not determined (which is an error):

“af_iad_data”:{“error”:”ADClientErrorTrackingRestrictedOrDenied”}

After step 4,logs shows that SDK is sending the purchase event and in its payload is appearing again the error:

“af_iad_data”:{“error”:”ADClientErrorTrackingRestrictedOrDenied”}

Even if I restart the app over and over again, AppsFlyer SDK will never update the ATT status on its end (even with ATT status as “authorized”). So it’s not only an issue on first app run, but after that too, when the app will be open countless times after with AppsFlyer SDK setting ATT status wrongly.

Question is: am I doing something wrong on my end or is it possibly a bug on Appsflyer, since it’s not recognizing current ATT status input correctly?

New contributor

Ruyther Costa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật